Package com.linkedin.alpini.netty4.ssl
Class SSLEngineFactoryImpl
java.lang.Object
com.linkedin.alpini.netty4.ssl.SSLEngineFactoryImpl
- All Implemented Interfaces:
SslFactory
,SSLEngineFactory
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.ssl.SslContext
context
(boolean isServer) The default implementation for the anonymous classes below.createSSLEngine
(io.netty.buffer.ByteBufAllocator alloc, boolean isServer) createSSLEngine
(io.netty.buffer.ByteBufAllocator alloc, String host, int port, boolean isServer) static String[]
filterDisallowedCiphersuites
(String[] ciphersuites) boolean
boolean
sessionContext
(boolean isServer) void
setSslRequireClientCerts
(boolean sslRequireClientCerts)
-
Field Details
-
CIPHER_SUITE_ALLOWLIST
-
-
Constructor Details
-
SSLEngineFactoryImpl
- Throws:
Exception
-
-
Method Details
-
filterDisallowedCiphersuites
public static String[] filterDisallowedCiphersuites(String[] ciphersuites) throws SSLProtocolException - Throws:
SSLProtocolException
-
getSSLContext
- Specified by:
getSSLContext
in interfaceSslFactory
- Returns:
- an
SSLContext
object - See Also:
-
getSSLParameters
- Specified by:
getSSLParameters
in interfaceSslFactory
- Returns:
- an
SSLParameters
object - See Also:
-
isSslEnabled
public boolean isSslEnabled()- Specified by:
isSslEnabled
in interfaceSslFactory
- Returns:
- Whether the implementation enforces SSL
-
isSslRequireClientCerts
public boolean isSslRequireClientCerts() -
setSslRequireClientCerts
public void setSslRequireClientCerts(boolean sslRequireClientCerts) -
context
public io.netty.handler.ssl.SslContext context(boolean isServer) Description copied from interface:SSLEngineFactory
The default implementation for the anonymous classes below. :69- Specified by:
context
in interfaceSSLEngineFactory
- Parameters:
isServer
-true
for server SSL context.- Returns:
- instance of SslContext
-
createSSLEngine
public SSLEngine createSSLEngine(io.netty.buffer.ByteBufAllocator alloc, String host, int port, boolean isServer) - Specified by:
createSSLEngine
in interfaceSSLEngineFactory
-
createSSLEngine
- Specified by:
createSSLEngine
in interfaceSSLEngineFactory
-
sessionContext
- Specified by:
sessionContext
in interfaceSSLEngineFactory
-