Class SSLChannelInfo


  • public class SSLChannelInfo
    extends java.lang.Object
    Class representing the SSLChannelInfo struct from NSS's sslt.h. This class is a data class; it contains public getters and no setters. It usually should be constructed via a call to org.mozilla.jss.nss.SSL.GetChannelInfo(SSLFDProxy inst) rather than directly constructing an instance. Note that calling GetChannelInfo prior to the handshake completing on the socket usually won't work or will give incomplete or inconclusive results. Use SSL.GetPreliminaryChannelInfo instead and see the corresponding class, SSLPreliminaryChannelInfo. Field and getter names match that in the NSS equivalent struct. The only omitted field is sessionIDLength, since sessionID.length suffices and Java byte arrays are of fixed, known length.
    • Constructor Detail

      • SSLChannelInfo

        public SSLChannelInfo​(int protocolVersion,
                              int cipherSuite,
                              int authKeyBits,
                              int keaKeyBits,
                              long creationTime,
                              long lastAccessTime,
                              long expirationTime,
                              byte[] sessionID,
                              int compressionMethod,
                              boolean extendedMasterSecretUsed,
                              boolean earlyDataAccepted,
                              int keaType,
                              int keaGroup,
                              int symCipher,
                              int macAlgorithm,
                              int authType,
                              int signatureScheme,
                              boolean haveNSS334,
                              int originalKeaGroup,
                              boolean resumed,
                              boolean haveNSS345,
                              boolean peerDelegCred)
        Constructor used by SSL.GetChannelInfo(...). This translates between ints and enum constants.
    • Method Detail

      • getProtocolVersion

        public SSLVersion getProtocolVersion()
        Gets the value of protocolVersion. See also: protocolVersion
      • getCipherSuite

        public SSLCipher getCipherSuite()
        Gets the value of cipherSuite. See also: cipherSuite.
      • getAuthKeyBits

        public int getAuthKeyBits()
        Gets the value of authKeyBits. See also: authKeyBits.
      • getKeaKeyBits

        public int getKeaKeyBits()
        Gets the value of keaKeyBits. See also: keaKeyBits.
      • getCreationTime

        public long getCreationTime()
        Gets the value of creationTime. See also: creationTime.
      • getLastAccessTime

        public long getLastAccessTime()
        Gets the value of lastAccessTime. See also: lastAccessTime.
      • getExpirationTime

        public long getExpirationTime()
        Gets the value of expirationTime. See also: expirationTime.
      • getSessionID

        public byte[] getSessionID()
        Gets the value of sessionID. See also: sessionID.
      • getCompressionMethod

        public SSLCompressionMethod getCompressionMethod()
        Gets the value of compressionMethod. See also: compressionMethod.
      • getExtendedMasterSecretUsed

        public boolean getExtendedMasterSecretUsed()
        Gets the value of extendedMasterSecretUsed. See also: extendedMasterSecretUsed.
      • getEarlyDataAccepted

        public boolean getEarlyDataAccepted()
        Gets the value of earlyDataAccepted. See also: earlyDataAccepted.
      • getKeaType

        public SSLKEAType getKeaType()
        Gets the value of keaType. See also: keaType.
      • getKeaGroup

        public SSLNamedGroup getKeaGroup()
        Gets the value of keaGroup. See also: keaGroup.
      • getSymCipher

        public SSLCipherAlgorithm getSymCipher()
        Gets the value of symCipher. See also: symCipher.
      • getMacAlgorithm

        public SSLMACAlgorithm getMacAlgorithm()
        Gets the value of macAlgorithm. See also: macAlgorithm.
      • getAuthType

        public SSLAuthType getAuthType()
        Gets the value of authType. See also: authType.
      • getSignatureScheme

        public SSLSignatureScheme getSignatureScheme()
        Gets the value of signatureScheme. See also: signatureScheme.
      • getPeerDelegCred

        public boolean getPeerDelegCred()
                                 throws ObjectNotFoundException
        Gets the value of peerDelegCred; throws an exception when the field isn't available from NSS. See also: peerDelegCred.
        Throws:
        ObjectNotFoundException
      • toString

        public java.lang.String toString()
        Returns a string representation of the data in this data structure.
        Overrides:
        toString in class java.lang.Object