java.lang.Object
io.helidon.webserver.SSLContextBuilder
- All Implemented Interfaces:
Builder<SSLContextBuilder,,SSLContext> Supplier<SSLContext>
@Deprecated
public final class SSLContextBuilder
extends Object
implements Builder<SSLContextBuilder,SSLContext>
Deprecated.
Builder for configuring a new SslContext for creation.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)static SSLContextBuilderDeprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)static SSLContextDeprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)sessionCacheSize(long sessionCacheSize) Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)sessionTimeout(long sessionTimeout) Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)trustConfig(KeyConfig trustConfig) Deprecated.since 2.0.0, please useWebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)
-
Method Details
-
create
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.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.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.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.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.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<SSLContextBuilder,SSLContext> - Returns:
- the SSL Context built instance
- Throws:
IllegalStateException- in case of a problem; will wrap either an instance ofIOExceptionor aGeneralSecurityException
-
WebServerTls.builder()instead, then configure it withWebServer.Builder.tls(WebServerTls)orSocketConfiguration.SocketConfigurationBuilder.tls(WebServerTls)