com.intel.crypto
Class SslSession.CertificateInfo
- java.lang.Object
-
- com.intel.crypto.SslSession.CertificateInfo
-
- Enclosing class:
- SslSession
public abstract static class SslSession.CertificateInfo extends java.lang.Object
This class represents single certificate in the certificate chain received from the SSL server during the Handshake phase
-
-
Field Summary
Fields Modifier and Type Field and Description static short
INFO_TYPE_CRL_DIST_POINT
The CRL distribution point extension in the certificatestatic short
INFO_TYPE_RAW_DATA
The certificate raw data in DER formatstatic short
INFO_TYPE_SERIAL_NUMBER
The certificate serial number
-
Method Summary
Methods Modifier and Type Method and Description abstract byte
getIndex()
Returns the location of the certificate in the certificate chain retrieved bygetChainInfo()
abstract List
getInfo(short infoType)
Returns a List of buffers with the requested information from the certificate.
-
-
-
Field Detail
-
INFO_TYPE_CRL_DIST_POINT
public static final short INFO_TYPE_CRL_DIST_POINT
The CRL distribution point extension in the certificate- See Also:
- Constant Field Values
-
INFO_TYPE_SERIAL_NUMBER
public static final short INFO_TYPE_SERIAL_NUMBER
The certificate serial number- See Also:
- Constant Field Values
-
INFO_TYPE_RAW_DATA
public static final short INFO_TYPE_RAW_DATA
The certificate raw data in DER format- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndex
public abstract byte getIndex() throws CryptoException
Returns the location of the certificate in the certificate chain retrieved bygetChainInfo()
- Returns:
- The zero-based location of the certificate in the certificate chain, index is from leaf to root: 0 index is the leaf
- Throws:
IllegalUseException
- if one of the following occurs- the associated SslSession instance called
destroy()
- the associated SslSession instance called
generateAlertMessage()
- the associated SslSession instance called
CryptoException
-
getInfo
public abstract List getInfo(short infoType) throws CryptoException
Returns a List of buffers with the requested information from the certificate.- Parameters:
infoType
- the type of requested information in the certificate object (one of INFO_TYPE_*)- Returns:
- A
List
of buffers (byte[] elements) with the requested information extracted from the certificate or an empty list in case no information is available. - Throws:
IllegalUseException
- if one of the following occurs- the associated SslSession instance called
destroy()
- the associated SslSession instance called
generateAlertMessage()
- the associated SslSession instance called
IllegalParameterException
- if the infoType is invalidCryptoException
- if an internal error occurred
-
-