Package io.netty.handler.ssl
Interface OpenSslSession
-
- All Superinterfaces:
javax.net.ssl.SSLSession
- All Known Implementing Classes:
ExtendedOpenSslSession
,OpenSslSessionCache.NativeSslSession
,ReferenceCountedOpenSslEngine.DefaultOpenSslSession
interface OpenSslSession extends javax.net.ssl.SSLSession
SSLSession
that is specific to our native implementation andReferenceCounted
to track native resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OpenSslSessionContext
getSessionContext()
void
handshakeFinished(byte[] id, java.lang.String cipher, java.lang.String protocol, byte[] peerCertificate, byte[][] peerCertificateChain, long creationTime, long timeout)
Called once the handshake has completed.OpenSslSessionId
sessionId()
Return theOpenSslSessionId
that can be used to identify this session.void
setLocalCertificate(java.security.cert.Certificate[] localCertificate)
Set the local certificate chain that is used.void
setSessionId(OpenSslSessionId id)
Set theOpenSslSessionId
for theOpenSslSession
.void
tryExpandApplicationBufferSize(int packetLengthDataOnly)
Expand (or increase) the value returned bySSLSession.getApplicationBufferSize()
if necessary.-
Methods inherited from interface javax.net.ssl.SSLSession
getApplicationBufferSize, getCipherSuite, getCreationTime, getId, getLastAccessedTime, getLocalCertificates, getLocalPrincipal, getPacketBufferSize, getPeerCertificateChain, getPeerCertificates, getPeerHost, getPeerPort, getPeerPrincipal, getProtocol, getValue, getValueNames, invalidate, isValid, putValue, removeValue
-
-
-
-
Method Detail
-
sessionId
OpenSslSessionId sessionId()
Return theOpenSslSessionId
that can be used to identify this session.
-
setLocalCertificate
void setLocalCertificate(java.security.cert.Certificate[] localCertificate)
Set the local certificate chain that is used. It is not expected that this array will be changed at all and so its ok to not copy the array.
-
setSessionId
void setSessionId(OpenSslSessionId id)
Set theOpenSslSessionId
for theOpenSslSession
.
-
getSessionContext
OpenSslSessionContext getSessionContext()
- Specified by:
getSessionContext
in interfacejavax.net.ssl.SSLSession
-
tryExpandApplicationBufferSize
void tryExpandApplicationBufferSize(int packetLengthDataOnly)
Expand (or increase) the value returned bySSLSession.getApplicationBufferSize()
if necessary.This is only called in a synchronized block, so no need to use atomic operations.
- Parameters:
packetLengthDataOnly
- The packet size which exceeds the currentSSLSession.getApplicationBufferSize()
.
-
handshakeFinished
void handshakeFinished(byte[] id, java.lang.String cipher, java.lang.String protocol, byte[] peerCertificate, byte[][] peerCertificateChain, long creationTime, long timeout) throws javax.net.ssl.SSLException
Called once the handshake has completed.- Throws:
javax.net.ssl.SSLException
-
-