Package org.mozilla.jss.nss
Class SSLChannelInfo
java.lang.Object
org.mozilla.jss.nss.SSLChannelInfo
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 Summary
ConstructorsConstructorDescriptionSSLChannelInfo
(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(...). -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the value of authKeyBits.Gets the value of authType.Gets the value of cipherSuite.Gets the value of compressionMethod.long
Gets the value of creationTime.boolean
Gets the value of earlyDataAccepted.long
Gets the value of expirationTime.boolean
Gets the value of extendedMasterSecretUsed.Gets the value of keaGroup.int
Gets the value of keaKeyBits.Gets the value of keaType.long
Gets the value of lastAccessTime.Gets the value of macAlgorithm.Gets the value of originalKeaGroup; throws an exception when the field isn't available from NSS.boolean
Gets the value of peerDelegCred; throws an exception when the field isn't available from NSS.Gets the value of protocolVersion.boolean
Gets the value of resumed; throws an exception when the field isn't available from NSS.byte[]
Gets the value of sessionID.Gets the value of signatureScheme.Gets the value of symCipher.toString()
Returns a string representation of the data in this data structure.
-
Constructor Details
-
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 Details
-
getProtocolVersion
Gets the value of protocolVersion. See also: protocolVersion -
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
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
Gets the value of keaType. See also: keaType. -
getKeaGroup
Gets the value of keaGroup. See also: keaGroup. -
getSymCipher
Gets the value of symCipher. See also: symCipher. -
getMacAlgorithm
Gets the value of macAlgorithm. See also: macAlgorithm. -
getAuthType
Gets the value of authType. See also: authType. -
getSignatureScheme
Gets the value of signatureScheme. See also: signatureScheme. -
getOriginalKeaGroup
Gets the value of originalKeaGroup; throws an exception when the field isn't available from NSS. See also: originalKeaGroup.- Throws:
ObjectNotFoundException
-
getResumed
Gets the value of resumed; throws an exception when the field isn't available from NSS. See also: resumed.- Throws:
ObjectNotFoundException
-
getPeerDelegCred
Gets the value of peerDelegCred; throws an exception when the field isn't available from NSS. See also: peerDelegCred.- Throws:
ObjectNotFoundException
-
toString
Returns a string representation of the data in this data structure.
-