- java.lang.Object
-
- io.helidon.webserver.TlsConfig
-
public final class TlsConfig extends Object
A class wrapping transport layer security (TLS) configuration for WebServer sockets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTlsConfig.BuilderFluent API builder forTlsConfig.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TlsConfig.Builderbuilder()A fluent API builder forTlsConfig.static TlsConfigcreate(Config config)Create TLS configuration from config.booleanenabled()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).
-
-
-
Method Detail
-
builder
public static TlsConfig.Builder builder()
A fluent API builder forTlsConfig.- Returns:
- a new builder instance
-
create
public static TlsConfig 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:
trueif this configuration represents a TLS configuration,falsefor plain configuration
-
-