Class SSLPreliminaryChannelInfo

java.lang.Object
org.mozilla.jss.nss.SSLPreliminaryChannelInfo

public class SSLPreliminaryChannelInfo extends 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

    Modifier and Type
    Method
    Description
    int
    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.
    Returns a string representation of the data in this data structure.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      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 String toString()
      Returns a string representation of the data in this data structure.
      Overrides:
      toString in class Object