| Modifier and Type | Method and Description |
|---|---|
javax.net.ssl.SSLContext |
build()
Create new
{@link SSLContext} instance with configured settings. |
static SSLContextBuilder |
create(KeyConfig privateKeyConfig)
Creates a builder of the
SSLContext. |
static javax.net.ssl.SSLContext |
fromConfig(Config sslConfig)
Creates
SSLContext from the provided configuration. |
SSLContextBuilder |
sessionCacheSize(long sessionCacheSize)
Set the size of the cache used for storing SSL session objects.
|
SSLContextBuilder |
sessionTimeout(long sessionTimeout)
Set the timeout for the cached SSL session objects, in seconds.
|
SSLContextBuilder |
trustConfig(KeyConfig trustConfig)
Set the trust key configuration to be used to validate certificates.
|
public static SSLContextBuilder create(KeyConfig privateKeyConfig)
SSLContext.privateKeyConfig - the required private key configuration parameterpublic static javax.net.ssl.SSLContext fromConfig(Config sslConfig)
SSLContext from the provided configuration.sslConfig - the ssl configurationSSLContextjava.lang.IllegalStateException - in case of a problem; will wrap either an instance of IOException or
a GeneralSecurityExceptionpublic SSLContextBuilder trustConfig(KeyConfig trustConfig)
trustConfig - the trust configurationpublic SSLContextBuilder sessionCacheSize(long sessionCacheSize)
0 to use the
default value.sessionCacheSize - the session cache sizepublic SSLContextBuilder sessionTimeout(long sessionTimeout)
0 to use the
default value.sessionTimeout - the session timeoutpublic javax.net.ssl.SSLContext build()
{@link SSLContext} instance with configured settings.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.