Class TlsCryptoParameters
java.lang.Object
org.bouncycastle.tls.crypto.TlsCryptoParameters
Carrier class for context-related parameters needed for creating secrets and ciphers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the security parameters currently in force: the handshake parameters while a handshake is in progress, the connection parameters once it has completed.booleanisServer()
-
Constructor Details
-
TlsCryptoParameters
Base constructor.- Parameters:
context- the context for this parameters object.
-
-
Method Details
-
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 mirrorsTlsContext.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
-
getSecurityParametersHandshake
-
getClientVersion
-
getRSAPreMasterSecretVersion
-
getServerVersion
-
isServer
public boolean isServer() -
getNonceGenerator
-