Package io.helidon.webserver
Class WebServerTls.Builder
- java.lang.Object
-
- io.helidon.webserver.WebServerTls.Builder
-
- All Implemented Interfaces:
Builder<WebServerTls>,Supplier<WebServerTls>
- Enclosing class:
- WebServerTls
public static class WebServerTls.Builder extends Object implements Builder<WebServerTls>
Fluent API builder forWebServerTls.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebServerTls.BuilderallowedCipherSuite(List<String> cipherSuite)Set allowed cipher suite.WebServerTlsbuild()Build the instance from this builder.WebServerTls.BuilderclientAuth(ClientAuthentication clientAuth)Configures whether client authentication will be required or not.WebServerTls.Builderconfig(Config config)Update this builder from configuration.WebServerTls.BuildersslContext(SSLContext context)Configures aSSLContextto use with the server socket.
-
-
-
Method Detail
-
build
public WebServerTls build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<WebServerTls>- Returns:
- instance of the built type
-
config
public WebServerTls.Builder config(Config config)
Update this builder from configuration.- Parameters:
config- config on the node of SSL configuration- Returns:
- this builder
-
clientAuth
public WebServerTls.Builder clientAuth(ClientAuthentication clientAuth)
Configures whether client authentication will be required or not.- Parameters:
clientAuth- client authentication- Returns:
- this builder
-
sslContext
public WebServerTls.Builder sslContext(SSLContext context)
Configures aSSLContextto use with the server socket. If notnullthen the server enforces an SSL communication.- Parameters:
context- a SSL context to use- Returns:
- this builder
-
allowedCipherSuite
public WebServerTls.Builder allowedCipherSuite(List<String> cipherSuite)
Set allowed cipher suite. If an empty collection is set, an exception is thrown since it is required to support at least some ciphers.- Parameters:
cipherSuite- allowed cipher suite- Returns:
- an updated builder
-
-