- java.lang.Object
-
- io.helidon.webserver.SSLContextBuilder
-
- All Implemented Interfaces:
Builder<SSLContext>,Supplier<SSLContext>
@Deprecated public final class SSLContextBuilder extends Object implements Builder<SSLContext>
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)Builder for configuring a new SslContext for creation.
-
-
Method Summary
-
-
-
Method Detail
-
create
@Deprecated public static SSLContextBuilder create(KeyConfig privateKeyConfig)
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)Creates a builder of theSSLContext.- Parameters:
privateKeyConfig- the required private key configuration parameter- Returns:
- this builder
-
create
@Deprecated public static SSLContext create(Config sslConfig)
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)CreatesSSLContextfrom the provided configuration.- Parameters:
sslConfig- the ssl configuration- Returns:
- a built
SSLContext - Throws:
IllegalStateException- in case of a problem; will wrap either an instance ofIOExceptionor aGeneralSecurityException
-
trustConfig
@Deprecated public SSLContextBuilder trustConfig(KeyConfig trustConfig)
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)Set the trust key configuration to be used to validate certificates.- Parameters:
trustConfig- the trust configuration- Returns:
- an updated builder
-
sessionCacheSize
@Deprecated public SSLContextBuilder sessionCacheSize(long sessionCacheSize)
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)Set the size of the cache used for storing SSL session objects.0to use the default value.- Parameters:
sessionCacheSize- the session cache size- Returns:
- an updated builder
-
sessionTimeout
@Deprecated public SSLContextBuilder sessionTimeout(long sessionTimeout)
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)Set the timeout for the cached SSL session objects, in seconds.0to use the default value.- Parameters:
sessionTimeout- the session timeout- Returns:
- an updated builder
-
build
@Deprecated public SSLContext build()
Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)Create new{@link SSLContext}instance with configured settings.- Specified by:
buildin interfaceBuilder<SSLContext>- Returns:
- the SSL Context built instance
- Throws:
IllegalStateException- in case of a problem; will wrap either an instance ofIOExceptionor aGeneralSecurityException
-
-