java.lang.Object
io.helidon.nima.common.tls.Tls
TLS configuration - common for server and client.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Tls.Builderbuilder()A new fluent API builder.static TlsCreate TLS configuration from config.Create a TLS socket for a server.createSocket(String alpnProtocol) Create a socket for the chosen protocol.booleanenabled()Whether this TLS configuration is enabled or not.booleaninthashCode()final SSLEngineSSL engine from this configuration.voidReload reloadable TLS components with the new configuration.SSL context based on the configured values.SSL parameters.
-
Field Details
-
ENDPOINT_IDENTIFICATION_HTTPS
HTTPS endpoint identification algorithm, verifies certificate cn against host name.- See Also:
-
ENDPOINT_IDENTIFICATION_NONE
Disable host name verification.- See Also:
-
-
Method Details
-
builder
A new fluent API builder.- Returns:
- builder
-
create
Create TLS configuration from config.- Parameters:
config- located on the node of the tls configuration (usually this isssl)- Returns:
- a new TLS configuration
-
newEngine
SSL engine from this configuration.- Returns:
- SSL Engine
-
hashCode
public int hashCode() -
equals
-
createServerSocket
Create a TLS socket for a server.- Returns:
- a new server socket ready for TLS communication
-
createSocket
Create a socket for the chosen protocol.- Parameters:
alpnProtocol- protocol to use- Returns:
- a new socket ready for TLS communication
-
sslContext
SSL context based on the configured values.- Returns:
- SSL context
-
sslParameters
SSL parameters.- Returns:
- SSL parameters
-
reload
Reload reloadable TLS components with the new configuration.- Parameters:
tls- new TLS configuration
-
enabled
public boolean enabled()Whether this TLS configuration is enabled or not.- Returns:
- whether TLS is enabled
-