io.helidon.common.Builder<javax.net.ssl.SSLContext>public final class SSLContextBuilder
extends java.lang.Object
implements io.helidon.common.Builder<javax.net.ssl.SSLContext>
| Modifier and Type | Method | Description |
|---|---|---|
javax.net.ssl.SSLContext |
build() |
Create new
{@link SSLContext} instance with configured settings. |
static SSLContextBuilder |
create(io.helidon.common.pki.KeyConfig privateKeyConfig) |
Creates a builder of the
SSLContext. |
static javax.net.ssl.SSLContext |
fromConfig(io.helidon.config.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(io.helidon.common.pki.KeyConfig trustConfig) |
Set the trust key configuration to be used to validate certificates.
|
public static SSLContextBuilder create(io.helidon.common.pki.KeyConfig privateKeyConfig)
SSLContext.privateKeyConfig - the required private key configuration parameterpublic static javax.net.ssl.SSLContext fromConfig(io.helidon.config.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(io.helidon.common.pki.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.build in interface io.helidon.common.Builder<javax.net.ssl.SSLContext>java.lang.IllegalStateException - in case of a problem; will wrap either an instance of IOException or
a GeneralSecurityExceptionCopyright © 2018 Oracle Corporation. All rights reserved.