Package org.mozilla.jss.nss
Class SSLPreliminaryChannelInfo
- java.lang.Object
-
- org.mozilla.jss.nss.SSLPreliminaryChannelInfo
-
public class SSLPreliminaryChannelInfo extends java.lang.Object
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
Constructors Constructor Description 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(...).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAuthKeyBits()
Gets the value of authKeyBits; throws an exception when the value isn't yet available.SSLCipher
getCipherSuite()
Gets the value of cipherSuite; throws an exception when the value isn't yet available.boolean
getPeerDelegCred()
Gets the value of peerDelegCred; throws an exception when the value isn't yet available.SSLVersion
getProtocolVersion()
Gets the value of protocolVersion; throws an exception when the value isn't yet available.SSLSignatureScheme
getSignatureScheme()
Gets the value of signatureScheme; throws an exception when the value isn't yet available.SSLCipher
getZeroRttCipherSuite()
Gets the value of zeroRttCipherSuite; throws an exception when the value isn't yet available.boolean
haveCipherSuite()
Check this to see whether the value of cipherSuite can be used.boolean
havePeerAuth()
Check this to see whether the value of the peerDelegCred, authKeyBits, and signatureScheme fields can be used.boolean
haveProtocolVersion()
Check this to see whether the value of protocolVersion can be used.boolean
haveZeroRttCipherSuite()
Check this to see whether the value of zeroRttCipherSuite can be used.java.lang.String
toString()
Returns a string representation of the data in this data structure.
-
-
-
Constructor Detail
-
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 Detail
-
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
public SSLVersion getProtocolVersion() throws ObjectNotFoundException
Gets the value of protocolVersion; throws an exception when the value isn't yet available. See also: protocolVersion.- Throws:
ObjectNotFoundException
-
getCipherSuite
public SSLCipher getCipherSuite() throws ObjectNotFoundException
Gets the value of cipherSuite; throws an exception when the value isn't yet available. See also: cipherSuite.- Throws:
ObjectNotFoundException
-
getZeroRttCipherSuite
public SSLCipher getZeroRttCipherSuite() throws ObjectNotFoundException
Gets the value of zeroRttCipherSuite; throws an exception when the value isn't yet available. See also: zeroRttCipherSuite.- Throws:
ObjectNotFoundException
-
getPeerDelegCred
public boolean getPeerDelegCred() throws ObjectNotFoundException
Gets the value of peerDelegCred; throws an exception when the value isn't yet available. See also: peerDelegCred.- Throws:
ObjectNotFoundException
-
getAuthKeyBits
public int getAuthKeyBits() throws ObjectNotFoundException
Gets the value of authKeyBits; throws an exception when the value isn't yet available. See also: authKeyBits.- Throws:
ObjectNotFoundException
-
getSignatureScheme
public SSLSignatureScheme getSignatureScheme() throws ObjectNotFoundException
Gets the value of signatureScheme; throws an exception when the value isn't yet available. See also: signatureScheme.- Throws:
ObjectNotFoundException
-
toString
public java.lang.String toString()
Returns a string representation of the data in this data structure.- Overrides:
toString
in classjava.lang.Object
-
-