org.bouncycastle.crypto.tls
Interface TlsContext
- All Known Subinterfaces:
- TlsClientContext, TlsServerContext
public interface TlsContext
getSecureRandom
java.security.SecureRandom getSecureRandom()
getSecurityParameters
SecurityParameters getSecurityParameters()
isServer
boolean isServer()
getClientVersion
ProtocolVersion getClientVersion()
getServerVersion
ProtocolVersion getServerVersion()
getUserObject
java.lang.Object getUserObject()
setUserObject
void setUserObject(java.lang.Object userObject)
exportKeyingMaterial
byte[] exportKeyingMaterial(java.lang.String asciiLabel,
byte[] context_value,
int length)
- Export keying material according to RFC 5705: "Keying Material Exporters for TLS".
- Parameters:
asciiLabel
- indicates which application will use the exported keys.context_value
- allows the application using the exporter to mix its own data with the TLS PRF for
the exporter output.length
- the number of bytes to generate
- Returns:
- a pseudorandom bit string of 'length' bytes generated from the master_secret.