Class TlsCryptoParameters

java.lang.Object
org.bouncycastle.tls.crypto.TlsCryptoParameters

public class TlsCryptoParameters extends Object
Carrier class for context-related parameters needed for creating secrets and ciphers.
  • Constructor Details

    • TlsCryptoParameters

      public TlsCryptoParameters(TlsContext context)
      Base constructor.
      Parameters:
      context - the context for this parameters object.
  • Method Details

    • getSecurityParameters

      public SecurityParameters getSecurityParameters()
      Return the security parameters currently in force: the handshake parameters while a handshake is in progress, the connection parameters once it has completed. This mirrors TlsContext.getSecurityParameters(), and lets a cipher be built after the handshake has completed (RFC 9147 4.6.3 key update), when the handshake parameters no longer exist.
      Returns:
      the security parameters in force, or null before any handshake has begun.
    • getSecurityParametersConnection

      public SecurityParameters getSecurityParametersConnection()
    • getSecurityParametersHandshake

      public SecurityParameters getSecurityParametersHandshake()
    • getClientVersion

      public ProtocolVersion getClientVersion()
    • getRSAPreMasterSecretVersion

      public ProtocolVersion getRSAPreMasterSecretVersion()
    • getServerVersion

      public ProtocolVersion getServerVersion()
    • isServer

      public boolean isServer()
    • getNonceGenerator

      public TlsNonceGenerator getNonceGenerator()