Returns the OCSP stapled response. The returned array is not copied; the caller must either not modify the returned array or make a copy.
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.
Converts the given session to bytes.
Converts this object to a {@link SSLSession}. The returned session will support only a subset of the {@link SSLSession} API.
Creates a new {@link NativeSslSession} instance from the provided serialized bytes, which were generated by {@link #toBytes()}.
A utility wrapper that abstracts operations on the underlying native SSL_SESSION instance.
This is abstract only to support mocking for tests.