public interface TlsContext
Modifier and Type | Method and Description |
---|---|
byte[] |
exportChannelBinding(int channelBinding)
Export the value of the specified channel binding.
|
byte[] |
exportEarlyKeyingMaterial(java.lang.String asciiLabel,
byte[] context_value,
int length)
Export (early data) keying material according to RFC 5705: "Keying Material Exporters for
TLS", as updated for TLS 1.3 (RFC 8446).
|
byte[] |
exportKeyingMaterial(java.lang.String asciiLabel,
byte[] context_value,
int length)
Export keying material according to RFC 5705: "Keying Material Exporters for TLS", as updated
for TLS 1.3 (RFC 8446) when negotiated.
|
ProtocolVersion[] |
getClientSupportedVersions() |
ProtocolVersion |
getClientVersion() |
TlsCrypto |
getCrypto() |
TlsNonceGenerator |
getNonceGenerator() |
TlsSession |
getResumableSession()
Used to get the resumable session, if any, used by this connection.
|
ProtocolVersion |
getRSAPreMasterSecretVersion() |
SecurityParameters |
getSecurityParameters() |
SecurityParameters |
getSecurityParametersConnection() |
SecurityParameters |
getSecurityParametersHandshake() |
ProtocolVersion |
getServerVersion() |
TlsSession |
getSession()
Used to get the session information for this connection.
|
java.lang.Object |
getUserObject() |
boolean |
isServer()
Return true if this context is for a server, false otherwise.
|
void |
setUserObject(java.lang.Object userObject) |
TlsCrypto getCrypto()
TlsNonceGenerator getNonceGenerator()
SecurityParameters getSecurityParameters()
SecurityParameters getSecurityParametersConnection()
SecurityParameters getSecurityParametersHandshake()
boolean isServer()
ProtocolVersion[] getClientSupportedVersions()
ProtocolVersion getClientVersion()
ProtocolVersion getRSAPreMasterSecretVersion()
ProtocolVersion getServerVersion()
TlsSession getResumableSession()
TlsSession
representing the resumable session used by this connection, or
null if no resumable session available.TlsPeer.notifyHandshakeComplete()
TlsSession getSession()
TlsSession.isResumable()
to find out if the session
is resumable.TlsSession
representing the session used by this connection.TlsPeer.notifyHandshakeComplete()
java.lang.Object getUserObject()
void setUserObject(java.lang.Object userObject)
byte[] exportChannelBinding(int channelBinding)
channelBinding
- A ChannelBinding
constant specifying the channel binding to export.byte[]
, or null if the binding could
not be determined.byte[] exportEarlyKeyingMaterial(java.lang.String asciiLabel, byte[] context_value, int length)
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.byte[] exportKeyingMaterial(java.lang.String asciiLabel, byte[] context_value, int length)
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.