Package org.mozilla.jss.nss
Class SSLPreliminaryChannelInfo
java.lang.Object
org.mozilla.jss.nss.SSLPreliminaryChannelInfo
Class representing the SSLPreliminaryChannelInfo struct from NSS's sslt.h.
This class is a data class; it contains getters and no setters. It usually
should be constructed via a call to
org.mozilla.jss.nss.SSL.GetPreliminaryChannelInfo(SSLFDProxy inst) rather
than directly constructing an instance.
This class works regardless of handshake status; in particular, it will
succeed when called early in the handshake. If a given set of fields are
known, support will be indicated via the haveFIELD functions. If the value
of this field isn't yet known, the function will return false.
Field and getter names match that in the NSS equivalent struct. No fields
have been omitted.
-
Constructor Summary
ConstructorsConstructorDescriptionSSLPreliminaryChannelInfo
(long valuesSet, int protocolVersion, int cipherSuite, boolean canSendEarlyData, long maxEarlyDataSize, boolean haveNSS343, int zeroRttCipherSuite, boolean haveNSS348, boolean peerDelegCred, int authKeyBits, int signatureScheme) Constructor used by SSL.GetPreliminaryChannelInfo(...). -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the value of authKeyBits; throws an exception when the value isn't yet available.Gets the value of cipherSuite; throws an exception when the value isn't yet available.boolean
Gets the value of peerDelegCred; throws an exception when the value isn't yet available.Gets the value of protocolVersion; throws an exception when the value isn't yet available.Gets the value of signatureScheme; throws an exception when the value isn't yet available.Gets the value of zeroRttCipherSuite; throws an exception when the value isn't yet available.boolean
Check this to see whether the value of cipherSuite can be used.boolean
Check this to see whether the value of the peerDelegCred, authKeyBits, and signatureScheme fields can be used.boolean
Check this to see whether the value of protocolVersion can be used.boolean
Check this to see whether the value of zeroRttCipherSuite can be used.toString()
Returns a string representation of the data in this data structure.
-
Constructor Details
-
SSLPreliminaryChannelInfo
public SSLPreliminaryChannelInfo(long valuesSet, int protocolVersion, int cipherSuite, boolean canSendEarlyData, long maxEarlyDataSize, boolean haveNSS343, int zeroRttCipherSuite, boolean haveNSS348, boolean peerDelegCred, int authKeyBits, int signatureScheme) Constructor used by SSL.GetPreliminaryChannelInfo(...). This translates between ints and enum constants.
-
-
Method Details
-
haveProtocolVersion
public boolean haveProtocolVersion()Check this to see whether the value of protocolVersion can be used. Returns true if the handshake has progressed far enough for the value of the field to be determined. -
haveCipherSuite
public boolean haveCipherSuite()Check this to see whether the value of cipherSuite can be used. Returns true if the handshake has progressed far enough for the value of the field to be determined. -
haveZeroRttCipherSuite
public boolean haveZeroRttCipherSuite()Check this to see whether the value of zeroRttCipherSuite can be used. Returns true if the handshake has progressed far enough for the value of the field to be determined. -
havePeerAuth
public boolean havePeerAuth()Check this to see whether the value of the peerDelegCred, authKeyBits, and signatureScheme fields can be used. Returns true if the handshake has progressed far enough for the value of the fields to be determined. -
getProtocolVersion
Gets the value of protocolVersion; throws an exception when the value isn't yet available. See also: protocolVersion.- Throws:
ObjectNotFoundException
-
getCipherSuite
Gets the value of cipherSuite; throws an exception when the value isn't yet available. See also: cipherSuite.- Throws:
ObjectNotFoundException
-
getZeroRttCipherSuite
Gets the value of zeroRttCipherSuite; throws an exception when the value isn't yet available. See also: zeroRttCipherSuite.- Throws:
ObjectNotFoundException
-
getPeerDelegCred
Gets the value of peerDelegCred; throws an exception when the value isn't yet available. See also: peerDelegCred.- Throws:
ObjectNotFoundException
-
getAuthKeyBits
Gets the value of authKeyBits; throws an exception when the value isn't yet available. See also: authKeyBits.- Throws:
ObjectNotFoundException
-
getSignatureScheme
Gets the value of signatureScheme; throws an exception when the value isn't yet available. See also: signatureScheme.- Throws:
ObjectNotFoundException
-
toString
Returns a string representation of the data in this data structure.
-