
public class WaarpSslContextFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_SESSIONCACHE_SIZE |
protected static int |
DEFAULT_SESSIONCACHE_TIMEOUTSEC |
| Constructor and Description |
|---|
WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore)
Create both CONTEXT
|
WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore,
boolean serverMode)
Create only one of the CONTEXT
|
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
getClientContext() |
SSLContext |
getServerContext() |
WaarpSslHandler |
initInitializer(boolean serverMode,
boolean needClientAuth)
To be called before adding as first entry in the Initializer as
pipeline.addLast("ssl", sslhandler); |
WaarpSslHandler |
initInitializer(boolean serverMode,
boolean needClientAuth,
String host,
int port)
To be called before adding as first entry in the Initializer as
pipeline.addLast("ssl", sslhandler); |
boolean |
needClientAuthentication() |
void |
setSessionCacheTime(int cacheSize,
int timeOutInSeconds) |
protected static final int DEFAULT_SESSIONCACHE_TIMEOUTSEC
protected static final int DEFAULT_SESSIONCACHE_SIZE
public WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore)
ggSecureKeyStore - public WaarpSslContextFactory(WaarpSecureKeyStore ggSecureKeyStore, boolean serverMode)
ggSecureKeyStore - serverMode - public void setSessionCacheTime(int cacheSize,
int timeOutInSeconds)
cacheSize - default being 1024timeOutInSeconds - default being 60spublic SSLContext getServerContext()
public SSLContext getClientContext()
public WaarpSslHandler initInitializer(boolean serverMode, boolean needClientAuth)
serverMode - True if in Server Mode, else False in Client
modeneedClientAuth - True if the client needs to be
authenticated
(only if serverMode is True)public WaarpSslHandler initInitializer(boolean serverMode, boolean needClientAuth, String host, int port)
serverMode - True if in Server Mode, else False in Client
modeneedClientAuth - True if the client needs to be
authenticated
(only if serverMode is True)host - Host for which a resume is allowedport - port associated with the host for which a resume is
allowedpublic boolean needClientAuthentication()
Copyright © 2009–2020 Waarp. All rights reserved.