Package org.wildfly.openssl
Class OpenSSLEngine
java.lang.Object
javax.net.ssl.SSLEngine
org.wildfly.openssl.OpenSSLEngine
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidprotected voidfinalize()String[]String[]String[]booleanbooleanorg.wildfly.openssl.OpenSSLSessionContextString[]String[]booleanbooleanstatic booleanbooleanbooleanbooleanvoidsetApplicationProtocols(String... applicationProtocols) voidsetEnabledCipherSuites(String[] cipherSuites) voidsetEnabledProtocols(String[] protocols) voidsetEnableSessionCreation(boolean b) voidvoidsetNeedClientAuth(boolean b) voidsetSSLParameters(SSLParameters sslParameters) voidsetUseClientMode(boolean clientMode) voidsetWantClientAuth(boolean b) voidshutdown()Destroys this engine.unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) Methods inherited from class javax.net.ssl.SSLEngine
getPeerHost, getPeerPort, unwrap, unwrap, wrap, wrap
-
Field Details
-
VERIFY_DEPTH
protected static final int VERIFY_DEPTH- See Also:
-
SUPPORTED_PROTOCOLS
-
LEGACY_SUPPORTED_PROTOCOLS
-
DEFAULT_CERTIFICATE_VALIDATION_DEPTH
public static final int DEFAULT_CERTIFICATE_VALIDATION_DEPTH- See Also:
-
-
Method Details
-
getSessionContext
public org.wildfly.openssl.OpenSSLSessionContext getSessionContext() -
isClientMode
public boolean isClientMode() -
shutdown
public void shutdown()Destroys this engine. -
wrap
public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException - Specified by:
wrapin classSSLEngine- Throws:
SSLException
-
unwrap
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException - Specified by:
unwrapin classSSLEngine- Throws:
SSLException
-
getDelegatedTask
- Specified by:
getDelegatedTaskin classSSLEngine
-
closeInbound
- Specified by:
closeInboundin classSSLEngine- Throws:
SSLException
-
isInboundDone
public boolean isInboundDone()- Specified by:
isInboundDonein classSSLEngine
-
closeOutbound
public void closeOutbound()- Specified by:
closeOutboundin 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
-
getSession
- Specified by:
getSessionin classSSLEngine
-
beginHandshake
- Specified by:
beginHandshakein classSSLEngine- Throws:
SSLException
-
getHandshakeStatus
- Specified by:
getHandshakeStatusin classSSLEngine
-
setUseClientMode
public void setUseClientMode(boolean clientMode) - 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
-
finalize
-
getHandshakeSession
- Overrides:
getHandshakeSessionin classSSLEngine
-
getSelectedApplicationProtocol
-
getApplicationProtocols
-
setApplicationProtocols
-
isAlpnSupported
public static boolean isAlpnSupported() -
getSSLParameters
- Overrides:
getSSLParametersin classSSLEngine
-
setSSLParameters
- Overrides:
setSSLParametersin classSSLEngine
-
getApplicationProtocol
- Overrides:
getApplicationProtocolin classSSLEngine
-
getHandshakeApplicationProtocol
- Overrides:
getHandshakeApplicationProtocolin classSSLEngine
-
setHandshakeApplicationProtocolSelector
public void setHandshakeApplicationProtocolSelector(BiFunction<SSLEngine, List<String>, String> selector) - Overrides:
setHandshakeApplicationProtocolSelectorin classSSLEngine
-
getHandshakeApplicationProtocolSelector
- Overrides:
getHandshakeApplicationProtocolSelectorin classSSLEngine
-