Class OpenSslEngine
java.lang.Object
javax.net.ssl.SSLEngine
io.netty.handler.ssl.ReferenceCountedOpenSslEngine
io.netty.handler.ssl.OpenSslEngine
- All Implemented Interfaces:
ApplicationProtocolAccessor, ReferenceCounted
Implements a
SSLEngine using
OpenSSL BIO abstractions.
This class will use a finalizer to ensure native resources are automatically cleaned up. To avoid finalizers
and manually release the native memory see ReferenceCountedOpenSslEngine.
-
Field Summary
Fields inherited from class ReferenceCountedOpenSslEngine
alloc, jdkCompatibilityMode, MAX_PLAINTEXT_LENGTH, MAX_RECORD_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslEngine(OpenSslContext context, ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean jdkCompatibilityMode, java.lang.String endpointIdentificationAlgorithm, java.util.List<javax.net.ssl.SNIServerName> serverNames) -
Method Summary
Methods inherited from class ReferenceCountedOpenSslEngine
addCredential, authMethods, beginHandshake, bioSetFd, calculateMaxLengthForWrap, calculateOutNetBufSize, checkSniHostnameMatch, closeInbound, closeOutbound, getApplicationProtocol, getDelegatedTask, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getHandshakeApplicationProtocol, getHandshakeSession, getHandshakeStatus, getNeedClientAuth, getNegotiatedApplicationProtocol, getOcspResponse, getSelectedCredential, getSession, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, initHandshakeException, isInboundDone, isOutboundDone, isSessionReused, isTLSv13, masterKey, maxEncryptedPacketLength, maxEncryptedPacketLength0, maxWrapOverhead, refCnt, release, release, retain, retain, setEnabledCipherSuites, setEnabledProtocols, setEnableSessionCreation, setKeyMaterial, setNeedClientAuth, setOcspResponse, setSSLParameters, setUseClientMode, setVerify, setWantClientAuth, shutdown, sslPending, sslPointer, touch, touch, unwrap, unwrap, unwrap, unwrap, unwrap, wrap, wrapMethods inherited from class javax.net.ssl.SSLEngine
getHandshakeApplicationProtocolSelector, getPeerHost, getPeerPort, setHandshakeApplicationProtocolSelector, wrapMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OpenSslEngine
OpenSslEngine(OpenSslContext context, ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean jdkCompatibilityMode, java.lang.String endpointIdentificationAlgorithm, java.util.List<javax.net.ssl.SNIServerName> serverNames)
-
-
Method Details
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-