Class SecurityParameters

java.lang.Object
org.bouncycastle.tls.SecurityParameters

public class SecurityParameters extends Object
Carrier class for general security parameters.
  • Constructor Details

    • SecurityParameters

      public SecurityParameters()
  • Method Details

    • getEntity

      public int getEntity()
      Returns:
      ConnectionEnd
    • isResumedSession

      public boolean isResumedSession()
    • isRenegotiating

      public boolean isRenegotiating()
    • isSecureRenegotiation

      public boolean isSecureRenegotiation()
    • getCipherSuite

      public int getCipherSuite()
      Returns:
      CipherSuite
    • getClientCertTypes

      public short[] getClientCertTypes()
    • getClientServerNames

      public Vector getClientServerNames()
    • getClientSigAlgs

      public Vector getClientSigAlgs()
    • getClientSigAlgsCert

      public Vector getClientSigAlgsCert()
    • getClientSupportedGroups

      public int[] getClientSupportedGroups()
    • getConnectionIDLocal

      public byte[] getConnectionIDLocal()
    • getConnectionIDPeer

      public byte[] getConnectionIDPeer()
    • getServerSigAlgs

      public Vector getServerSigAlgs()
    • getServerSigAlgsCert

      public Vector getServerSigAlgsCert()
    • getServerSupportedGroups

      public int[] getServerSupportedGroups()
    • getCompressionAlgorithm

      public short getCompressionAlgorithm()
      Deprecated.
      Will be removed. Use constant CompressionMethod._null instead.
      Returns:
      CompressionMethod
    • getMaxFragmentLength

      public short getMaxFragmentLength()
      Returns:
      MaxFragmentLength, or -1 if none
    • getPrfAlgorithm

      public int getPrfAlgorithm()
      Deprecated.
      Use getPRFAlgorithm() instead.
    • getPRFAlgorithm

      public int getPRFAlgorithm()
      Returns:
      PRFAlgorithm
    • getPRFCryptoHashAlgorithm

      public int getPRFCryptoHashAlgorithm()
      Returns:
      CryptoHashAlgorithm for the current PRFAlgorithm
    • getPRFHashLength

      public int getPRFHashLength()
    • getVerifyDataLength

      public int getVerifyDataLength()
    • getBaseKeyClient

      public TlsSecret getBaseKeyClient()
    • getBaseKeyServer

      public TlsSecret getBaseKeyServer()
    • getEarlyExporterMasterSecret

      public TlsSecret getEarlyExporterMasterSecret()
    • getEarlySecret

      public TlsSecret getEarlySecret()
    • getExporterMasterSecret

      public TlsSecret getExporterMasterSecret()
    • getHandshakeSecret

      public TlsSecret getHandshakeSecret()
    • getMasterSecret

      public TlsSecret getMasterSecret()
    • getTrafficSecretClient

      public TlsSecret getTrafficSecretClient()
    • getTrafficSecretServer

      public TlsSecret getTrafficSecretServer()
    • getClientRandom

      public byte[] getClientRandom()
    • getServerRandom

      public byte[] getServerRandom()
    • getSessionHash

      public byte[] getSessionHash()
    • getSessionID

      public byte[] getSessionID()
    • getPSKIdentity

      public byte[] getPSKIdentity()
    • getSRPIdentity

      public byte[] getSRPIdentity()
    • getTLSServerEndPoint

      public byte[] getTLSServerEndPoint()
    • getTLSUnique

      public byte[] getTLSUnique()
    • isEncryptThenMAC

      public boolean isEncryptThenMAC()
    • isExtendedMasterSecret

      public boolean isExtendedMasterSecret()
    • isExtendedPadding

      public boolean isExtendedPadding()
    • isTruncatedHMac

      public boolean isTruncatedHMac()
    • getApplicationProtocol

      public ProtocolName getApplicationProtocol()
    • isApplicationProtocolSet

      public boolean isApplicationProtocolSet()
    • getLocalVerifyData

      public byte[] getLocalVerifyData()
    • getPeerVerifyData

      public byte[] getPeerVerifyData()
    • getKeyExchangeAlgorithm

      public int getKeyExchangeAlgorithm()
    • getLocalCertificate

      public Certificate getLocalCertificate()
    • getPeerCertificate

      public Certificate getPeerCertificate()
    • getNegotiatedVersion

      public ProtocolVersion getNegotiatedVersion()
    • getStatusRequestVersion

      public int getStatusRequestVersion()
    • getClientCertificateType

      public short getClientCertificateType()
    • getServerCertificateType

      public short getServerCertificateType()