
public class WaarpSslContextFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HAS_TRUST_MANAGER_IS_SERVER_MODE |
| Constructor and Description |
|---|
WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore)
Create both CONTEXT
|
WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore,
boolean serverMode)
Create only one of the CONTEXT
|
WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore,
boolean serverMode,
List<String> ciphers,
String... protocols)
Create only one of the CONTEXT with ciphers and/or protocols
|
WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore,
List<String> ciphers,
String... protocols)
Create both CONTEXT with ciphers and/or protocols
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.handler.ssl.SslHandler |
createHandlerClient(io.netty.channel.socket.SocketChannel channel)
To be called before adding as first entry in the Initializer as
pipeline.addLast("ssl", sslhandler); |
io.netty.handler.ssl.SslHandler |
createHandlerServer(boolean needClientAuth,
boolean startTls,
io.netty.channel.Channel channel)
To be called before adding as first entry in the Initializer as
pipeline.addLast("ssl", sslhandler); |
io.netty.handler.ssl.SslHandler |
createHandlerServer(boolean needClientAuth,
io.netty.channel.Channel channel)
To be called before adding as first entry in the Initializer as
pipeline.addLast("ssl", sslhandler); |
io.netty.handler.ssl.SslContext |
getClientContext() |
io.netty.handler.ssl.SslContext |
getServerContext() |
boolean |
needClientAuthentication() |
public static final String HAS_TRUST_MANAGER_IS_SERVER_MODE
public WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore)
ggSecureKeyStore - public WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore, List<String> ciphers, String... protocols)
ggSecureKeyStore - ciphers - protocols - public WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore, boolean serverMode)
ggSecureKeyStore - serverMode - public WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore, boolean serverMode, List<String> ciphers, String... protocols)
ggSecureKeyStore - serverMode - ciphers - protocols - public final io.netty.handler.ssl.SslContext getServerContext()
public final io.netty.handler.ssl.SslContext getClientContext()
public final io.netty.handler.ssl.SslHandler createHandlerServer(boolean needClientAuth,
io.netty.channel.Channel channel)
needClientAuth - True if the client needs to be
authenticated
(only if serverMode is True)channel - the channel needing the SslHandlerpublic final io.netty.handler.ssl.SslHandler createHandlerServer(boolean needClientAuth,
boolean startTls,
io.netty.channel.Channel channel)
needClientAuth - True if the client needs to be
authenticated
(only if serverMode is True)channel - the channel needing the SslHandlerpublic final io.netty.handler.ssl.SslHandler createHandlerClient(io.netty.channel.socket.SocketChannel channel)
channel - the channel needing the SslHandlerpublic final boolean needClientAuthentication()
Copyright © 2009–2022 Waarp. All rights reserved.