Package com.linkedin.alpini.netty4.ssl
Class SSLEngineFactoryImpl
- java.lang.Object
-
- com.linkedin.alpini.netty4.ssl.SSLEngineFactoryImpl
-
- All Implemented Interfaces:
SslFactory,SSLEngineFactory
public class SSLEngineFactoryImpl extends java.lang.Object implements SSLEngineFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSSLEngineFactoryImpl.Config
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]CIPHER_SUITE_ALLOWLIST
-
Constructor Summary
Constructors Constructor Description SSLEngineFactoryImpl(SSLEngineFactoryImpl.Config config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.ssl.SslContextcontext(boolean isServer)The default implementation for the anonymous classes below.javax.net.ssl.SSLEnginecreateSSLEngine(io.netty.buffer.ByteBufAllocator alloc, boolean isServer)javax.net.ssl.SSLEnginecreateSSLEngine(io.netty.buffer.ByteBufAllocator alloc, java.lang.String host, int port, boolean isServer)static java.lang.String[]filterDisallowedCiphersuites(java.lang.String[] ciphersuites)javax.net.ssl.SSLContextgetSSLContext()javax.net.ssl.SSLParametersgetSSLParameters()booleanisSslEnabled()booleanisSslRequireClientCerts()javax.net.ssl.SSLSessionContextsessionContext(boolean isServer)voidsetSslRequireClientCerts(boolean sslRequireClientCerts)
-
-
-
Constructor Detail
-
SSLEngineFactoryImpl
public SSLEngineFactoryImpl(SSLEngineFactoryImpl.Config config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
filterDisallowedCiphersuites
public static java.lang.String[] filterDisallowedCiphersuites(java.lang.String[] ciphersuites) throws javax.net.ssl.SSLProtocolException- Throws:
javax.net.ssl.SSLProtocolException
-
getSSLContext
public javax.net.ssl.SSLContext getSSLContext()
- Specified by:
getSSLContextin interfaceSslFactory- Returns:
- an
SSLContextobject - See Also:
SSLContext
-
getSSLParameters
public javax.net.ssl.SSLParameters getSSLParameters()
- Specified by:
getSSLParametersin interfaceSslFactory- Returns:
- an
SSLParametersobject - See Also:
SSLParameters
-
isSslEnabled
public boolean isSslEnabled()
- Specified by:
isSslEnabledin 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:SSLEngineFactoryThe default implementation for the anonymous classes below. :69- Specified by:
contextin interfaceSSLEngineFactory- Parameters:
isServer-truefor server SSL context.- Returns:
- instance of SslContext
-
createSSLEngine
public javax.net.ssl.SSLEngine createSSLEngine(io.netty.buffer.ByteBufAllocator alloc, java.lang.String host, int port, boolean isServer)- Specified by:
createSSLEnginein interfaceSSLEngineFactory
-
createSSLEngine
public javax.net.ssl.SSLEngine createSSLEngine(io.netty.buffer.ByteBufAllocator alloc, boolean isServer)- Specified by:
createSSLEnginein interfaceSSLEngineFactory
-
sessionContext
public javax.net.ssl.SSLSessionContext sessionContext(boolean isServer)
- Specified by:
sessionContextin interfaceSSLEngineFactory
-
-