Class OpenSslEngine
java.lang.Object
javax.net.ssl.SSLEngine
io.netty.handler.ssl.ReferenceCountedOpenSslEngine
io.netty.handler.ssl.OpenSslEngine
- All Implemented Interfaces:
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.
-
Method Summary
Methods inherited from class ReferenceCountedOpenSslEngine
addCredential, beginHandshake, closeInbound, closeOutbound, getApplicationProtocol, getDelegatedTask, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getHandshakeApplicationProtocol, getHandshakeSession, getHandshakeStatus, getNeedClientAuth, getNegotiatedApplicationProtocol, getOcspResponse, getSelectedCredential, getSession, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, isInboundDone, isOutboundDone, refCnt, release, release, retain, retain, setEnabledCipherSuites, setEnabledProtocols, setEnableSessionCreation, setNeedClientAuth, setOcspResponse, setSSLParameters, setUseClientMode, setVerify, setWantClientAuth, shutdown, sslPointer, touch, touch, unwrap, unwrap, unwrap, unwrap, unwrap, wrap, wrapModifier and TypeMethodDescriptionvoidaddCredential(OpenSslCredential credential) Adds anOpenSslCredentialto this SSL engine.final voidfinal voidfinal voidfinal Runnablefinal String[]final String[]final booleanfinal SSLSessionfinal booleanbyte[]Returns the OCSP response ornullif the server didn't provide a stapled OCSP response.Returns the selected credential for this SSL connection, ornullif no credential has been selected yet (e.g., handshake not complete).final SSLSessionfinal SSLParametersfinal String[]final String[]final booleanfinal booleanfinal booleanfinal booleanfinal intrefCnt()Returns the reference count of this object.final booleanrelease()Decreases the reference count by1and deallocates this object if the reference count reaches at0.final booleanrelease(int decrement) Decreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.final ReferenceCountedretain()Increases the reference count by1.final ReferenceCountedretain(int increment) Increases the reference count by the specifiedincrement.final voidsetEnabledCipherSuites(String[] cipherSuites) final voidsetEnabledProtocols(String[] protocols) TLS doesn't support a way to advertise non-contiguous versions from the client's perspective, and the client just advertises the max supported version.final voidsetEnableSessionCreation(boolean b) final voidsetNeedClientAuth(boolean b) voidsetOcspResponse(byte[] response) Sets the OCSP response.final voidsetSSLParameters(SSLParameters sslParameters) final voidsetUseClientMode(boolean clientMode) final voidsetVerify(int verifyMode, int depth) See SSL_set_verify andSSL.setVerify(long, int, int).final voidsetWantClientAuth(boolean b) final voidshutdown()Destroys this engine.final longReturns the pointer to theSSLobject for thisReferenceCountedOpenSslEngine.final ReferenceCountedtouch()Records the current access location of this object for debugging purposes.final ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes.final SSLEngineResultunwrap(ByteBuffer[] srcs, int srcsOffset, int srcsLength, ByteBuffer[] dsts, int dstsOffset, int dstsLength) final SSLEngineResultunwrap(ByteBuffer[] srcs, ByteBuffer[] dsts) final SSLEngineResultunwrap(ByteBuffer src, ByteBuffer dst) final SSLEngineResultunwrap(ByteBuffer src, ByteBuffer[] dsts) final SSLEngineResultunwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) final SSLEngineResultwrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) final SSLEngineResultwrap(ByteBuffer src, ByteBuffer dst) Methods inherited from class SSLEngine
getHandshakeApplicationProtocolSelector, getPeerHost, getPeerPort, setHandshakeApplicationProtocolSelector, wrap
-
Method Details
-
finalize
-