Package org.mozilla.jss.nss
Class SSLChannelInfo
- java.lang.Object
-
- org.mozilla.jss.nss.SSLChannelInfo
-
public class SSLChannelInfo extends java.lang.ObjectClass 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
Constructors Constructor Description 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(...).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAuthKeyBits()Gets the value of authKeyBits.SSLAuthTypegetAuthType()Gets the value of authType.SSLCiphergetCipherSuite()Gets the value of cipherSuite.SSLCompressionMethodgetCompressionMethod()Gets the value of compressionMethod.longgetCreationTime()Gets the value of creationTime.booleangetEarlyDataAccepted()Gets the value of earlyDataAccepted.longgetExpirationTime()Gets the value of expirationTime.booleangetExtendedMasterSecretUsed()Gets the value of extendedMasterSecretUsed.SSLNamedGroupgetKeaGroup()Gets the value of keaGroup.intgetKeaKeyBits()Gets the value of keaKeyBits.SSLKEATypegetKeaType()Gets the value of keaType.longgetLastAccessTime()Gets the value of lastAccessTime.SSLMACAlgorithmgetMacAlgorithm()Gets the value of macAlgorithm.SSLNamedGroupgetOriginalKeaGroup()Gets the value of originalKeaGroup; throws an exception when the field isn't available from NSS.booleangetPeerDelegCred()Gets the value of peerDelegCred; throws an exception when the field isn't available from NSS.SSLVersiongetProtocolVersion()Gets the value of protocolVersion.booleangetResumed()Gets the value of resumed; throws an exception when the field isn't available from NSS.byte[]getSessionID()Gets the value of sessionID.SSLSignatureSchemegetSignatureScheme()Gets the value of signatureScheme.SSLCipherAlgorithmgetSymCipher()Gets the value of symCipher.java.lang.StringtoString()Returns a string representation of the data in this data structure.
-
-
-
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.
-
getOriginalKeaGroup
public SSLNamedGroup getOriginalKeaGroup() throws ObjectNotFoundException
Gets the value of originalKeaGroup; throws an exception when the field isn't available from NSS. See also: originalKeaGroup.- Throws:
ObjectNotFoundException
-
getResumed
public boolean getResumed() throws ObjectNotFoundExceptionGets the value of resumed; throws an exception when the field isn't available from NSS. See also: resumed.- Throws:
ObjectNotFoundException
-
getPeerDelegCred
public boolean getPeerDelegCred() throws ObjectNotFoundExceptionGets 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:
toStringin classjava.lang.Object
-
-