- java.lang.Object
-
- io.helidon.webserver.WebServerTls
-
public final class WebServerTls extends Object
A class wrapping transport layer security (TLS) configuration for WebServer sockets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebServerTls.Builder
Fluent API builder forWebServerTls
.
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_X509_CERTIFICATE
This constant is a context classifier for the x509 client certificate if it is present.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebServerTls.Builder
builder()
A fluent API builder forWebServerTls
.static WebServerTls
create(Config config)
Create TLS configuration from config.boolean
enabled()
Whether this TLS config has security enabled (and the socket is going to be protected by one of the TLS protocols), or no (and the socket is going to be plain).
-
-
-
Field Detail
-
CLIENT_X509_CERTIFICATE
public static final String CLIENT_X509_CERTIFICATE
This constant is a context classifier for the x509 client certificate if it is present. Callers may use this constant to lookup the client certificate associated with the current request context.
-
-
Method Detail
-
builder
public static WebServerTls.Builder builder()
A fluent API builder forWebServerTls
.- Returns:
- a new builder instance
-
create
public static WebServerTls create(Config config)
Create TLS configuration from config.- Parameters:
config
- located on the node of the tls configuration (usually this isssl
)- Returns:
- a new TLS configuration
-
enabled
public boolean enabled()
Whether this TLS config has security enabled (and the socket is going to be protected by one of the TLS protocols), or no (and the socket is going to be plain).- Returns:
true
if this configuration represents a TLS configuration,false
for plain configuration
-
-