NativeSslSession

A utility wrapper that abstracts operations on the underlying native SSL_SESSION instance.

This is abstract only to support mocking for tests.

Members

Functions

getCipherSuite
string getCipherSuite()
Undocumented in source.
getId
byte[] getId()
Undocumented in source.
getPeerHost
string getPeerHost()
Undocumented in source.
getPeerOcspStapledResponse
byte[] getPeerOcspStapledResponse()

Returns the OCSP stapled response. The returned array is not copied; the caller must either not modify the returned array or make a copy.

getPeerPort
int getPeerPort()
Undocumented in source.
getPeerSignedCertificateTimestamp
byte[] getPeerSignedCertificateTimestamp()

Returns the signed certificate timestamp (SCT) received from the peer. The returned array is not copied; the caller must either not modify the returned array or make a copy.

getProtocol
string getProtocol()
Undocumented in source.
isValid
bool isValid()
Undocumented in source.
offerToResume
void offerToResume(NativeSsl ssl)
Undocumented in source.
toBytes
byte[] toBytes()

Converts the given session to bytes.

toSSLSession
SSLSession toSSLSession()

Converts this object to a {@link SSLSession}. The returned session will support only a subset of the {@link SSLSession} API.

Static functions

newInstance
NativeSslSession newInstance(AbstractSessionContext context, byte[] data, string host, int port)

Creates a new {@link NativeSslSession} instance from the provided serialized bytes, which were generated by {@link #toBytes()}.

Meta