Package io.netty.handler.ssl
Class JdkSslEngine
java.lang.Object
javax.net.ssl.SSLEngine
io.netty.handler.ssl.JdkSslEngine
- All Implemented Interfaces:
ApplicationProtocolAccessor
- Direct Known Subclasses:
JdkAlpnSslEngine
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidString[]String[]booleanbooleanReturns the name of the negotiated application-level protocol.intString[]String[]booleanbooleanbooleanbooleanvoidsetEnabledCipherSuites(String[] strings) voidsetEnabledProtocols(String[] strings) voidsetEnableSessionCreation(boolean b) voidsetNeedClientAuth(boolean b) (package private) voidsetNegotiatedApplicationProtocol(String applicationProtocol) voidsetSSLParameters(SSLParameters sslParameters) voidsetUseClientMode(boolean b) voidsetWantClientAuth(boolean b) unwrap(ByteBuffer byteBuffer, ByteBuffer byteBuffer2) unwrap(ByteBuffer byteBuffer, ByteBuffer[] byteBuffers) unwrap(ByteBuffer byteBuffer, ByteBuffer[] byteBuffers, int i, int i2) wrap(ByteBuffer[] byteBuffers, int i, int i2, ByteBuffer byteBuffer) wrap(ByteBuffer[] byteBuffers, ByteBuffer byteBuffer) wrap(ByteBuffer byteBuffer, ByteBuffer byteBuffer2) Methods inherited from class javax.net.ssl.SSLEngine
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, setHandshakeApplicationProtocolSelector
-
Field Details
-
engine
-
applicationProtocol
-
-
Constructor Details
-
JdkSslEngine
JdkSslEngine(SSLEngine engine)
-
-
Method Details
-
getNegotiatedApplicationProtocol
Description copied from interface:ApplicationProtocolAccessorReturns the name of the negotiated application-level protocol.- Specified by:
getNegotiatedApplicationProtocolin interfaceApplicationProtocolAccessor- Returns:
- the application-level protocol name or
nullif the negotiation failed or the client does not have ALPN/NPN extension
-
setNegotiatedApplicationProtocol
-
getSession
- Specified by:
getSessionin classSSLEngine
-
getWrappedEngine
-
closeInbound
- Specified by:
closeInboundin classSSLEngine- Throws:
SSLException
-
closeOutbound
public void closeOutbound()- Specified by:
closeOutboundin classSSLEngine
-
getPeerHost
- Overrides:
getPeerHostin classSSLEngine
-
getPeerPort
public int getPeerPort()- Overrides:
getPeerPortin classSSLEngine
-
wrap
- Overrides:
wrapin classSSLEngine- Throws:
SSLException
-
wrap
- Overrides:
wrapin classSSLEngine- Throws:
SSLException
-
wrap
public SSLEngineResult wrap(ByteBuffer[] byteBuffers, int i, int i2, ByteBuffer byteBuffer) throws SSLException - Specified by:
wrapin classSSLEngine- Throws:
SSLException
-
unwrap
- Overrides:
unwrapin classSSLEngine- Throws:
SSLException
-
unwrap
- Overrides:
unwrapin classSSLEngine- Throws:
SSLException
-
unwrap
public SSLEngineResult unwrap(ByteBuffer byteBuffer, ByteBuffer[] byteBuffers, int i, int i2) throws SSLException - Specified by:
unwrapin classSSLEngine- Throws:
SSLException
-
getDelegatedTask
- Specified by:
getDelegatedTaskin classSSLEngine
-
isInboundDone
public boolean isInboundDone()- Specified by:
isInboundDonein classSSLEngine
-
isOutboundDone
public boolean isOutboundDone()- Specified by:
isOutboundDonein classSSLEngine
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLEngine
-
getEnabledCipherSuites
- Specified by:
getEnabledCipherSuitesin classSSLEngine
-
setEnabledCipherSuites
- Specified by:
setEnabledCipherSuitesin classSSLEngine
-
getSupportedProtocols
- Specified by:
getSupportedProtocolsin classSSLEngine
-
getEnabledProtocols
- Specified by:
getEnabledProtocolsin classSSLEngine
-
setEnabledProtocols
- Specified by:
setEnabledProtocolsin classSSLEngine
-
getHandshakeSession
- Overrides:
getHandshakeSessionin classSSLEngine
-
beginHandshake
- Specified by:
beginHandshakein classSSLEngine- Throws:
SSLException
-
getHandshakeStatus
- Specified by:
getHandshakeStatusin classSSLEngine
-
setUseClientMode
public void setUseClientMode(boolean b) - Specified by:
setUseClientModein classSSLEngine
-
getUseClientMode
public boolean getUseClientMode()- Specified by:
getUseClientModein classSSLEngine
-
setNeedClientAuth
public void setNeedClientAuth(boolean b) - Specified by:
setNeedClientAuthin classSSLEngine
-
getNeedClientAuth
public boolean getNeedClientAuth()- Specified by:
getNeedClientAuthin classSSLEngine
-
setWantClientAuth
public void setWantClientAuth(boolean b) - Specified by:
setWantClientAuthin classSSLEngine
-
getWantClientAuth
public boolean getWantClientAuth()- Specified by:
getWantClientAuthin classSSLEngine
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean b) - Specified by:
setEnableSessionCreationin classSSLEngine
-
getEnableSessionCreation
public boolean getEnableSessionCreation()- Specified by:
getEnableSessionCreationin classSSLEngine
-
getSSLParameters
- Overrides:
getSSLParametersin classSSLEngine
-
setSSLParameters
- Overrides:
setSSLParametersin classSSLEngine
-