Intel

Developer Zone

SslSession.CertificateInfo

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
    • Method Summary

      Methods
      Modifier and Type Method and Description
      abstract byte getIndex()
      Returns the location of the certificate in the certificate chain retrieved by getChainInfo()
      abstract List getInfo(short infoType)
      Returns a List of buffers with the requested information from the certificate.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, toString
    • 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 by getChainInfo()
        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
        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
        IllegalParameterException - if the infoType is invalid
        CryptoException - if an internal error occurred