public abstract class JdkSslContext extends SslContext
SslContext which uses JDK's SSL/TLS implementation.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
cipherSuites |
(package private) static java.util.List<java.lang.String> |
DEFAULT_CIPHERS |
private static InternalLogger |
logger |
(package private) static java.lang.String |
PROTOCOL |
(package private) static java.lang.String[] |
PROTOCOLS |
private java.util.List<java.lang.String> |
unmodifiableCipherSuites |
| Constructor and Description |
|---|
JdkSslContext(SslBufferPool bufferPool,
java.lang.Iterable<java.lang.String> ciphers) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addIfSupported(java.lang.String[] supported,
java.util.List<java.lang.String> enabled,
java.lang.String... names) |
java.util.List<java.lang.String> |
cipherSuites()
Returns the list of enabled cipher suites, in the order of preference.
|
abstract javax.net.ssl.SSLContext |
context()
Returns the JDK
SSLContext object held by this context. |
javax.net.ssl.SSLEngine |
newEngine()
Creates a new
SSLEngine. |
javax.net.ssl.SSLEngine |
newEngine(java.lang.String peerHost,
int peerPort)
Creates a new
SSLEngine using advisory peer information. |
long |
sessionCacheSize()
Returns the size of the cache used for storing SSL session objects.
|
javax.net.ssl.SSLSessionContext |
sessionContext()
Returns the JDK
SSLSessionContext object held by this context. |
long |
sessionTimeout()
Returns the timeout for the cached SSL session objects, in seconds.
|
private static java.lang.String[] |
toCipherSuiteArray(java.lang.Iterable<java.lang.String> ciphers) |
private javax.net.ssl.SSLEngine |
wrapEngine(javax.net.ssl.SSLEngine engine) |
bufferPool, defaultClientProvider, defaultServerProvider, isClient, isServer, newBufferPool, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocolsprivate static final InternalLogger logger
static final java.lang.String PROTOCOL
static final java.lang.String[] PROTOCOLS
static final java.util.List<java.lang.String> DEFAULT_CIPHERS
private final java.lang.String[] cipherSuites
private final java.util.List<java.lang.String> unmodifiableCipherSuites
JdkSslContext(SslBufferPool bufferPool, java.lang.Iterable<java.lang.String> ciphers)
private static void addIfSupported(java.lang.String[] supported,
java.util.List<java.lang.String> enabled,
java.lang.String... names)
public abstract javax.net.ssl.SSLContext context()
SSLContext object held by this context.public final javax.net.ssl.SSLSessionContext sessionContext()
SSLSessionContext object held by this context.public final java.util.List<java.lang.String> cipherSuites()
SslContextcipherSuites in class SslContextpublic final long sessionCacheSize()
SslContextsessionCacheSize in class SslContextpublic final long sessionTimeout()
SslContextsessionTimeout in class SslContextpublic final javax.net.ssl.SSLEngine newEngine()
SslContextSSLEngine.newEngine in class SslContextSSLEnginepublic final javax.net.ssl.SSLEngine newEngine(java.lang.String peerHost,
int peerPort)
SslContextSSLEngine using advisory peer information.newEngine in class SslContextpeerHost - the non-authoritative name of the hostpeerPort - the non-authoritative portSSLEngineprivate javax.net.ssl.SSLEngine wrapEngine(javax.net.ssl.SSLEngine engine)
private static java.lang.String[] toCipherSuiteArray(java.lang.Iterable<java.lang.String> ciphers)