java.lang.Object
io.helidon.common.tls.Tls
- All Implemented Interfaces:
- RuntimeType.Api<TlsConfig>
TLS configuration - common for server and client.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic TlsConfig.Builderbuilder()A new fluent API builder.static TlsCreate TLS configuration from config.static TlsCreate TLS with custom configuration.static Tlscreate(Consumer<TlsConfig.Builder> consumer) Create TLS customizing its configuration.Create a TLS socket for a server.createSocket(List<String> alpnProtocols, Socket socket, InetSocketAddress address) Create a SSLSocket for the chosen protocol and the given socket.booleanenabled()Whether this TLS configuration is enabled or not.booleaninthashCode()final SSLEngineSSL engine from this configuration.The prototype as it was received when creating this runtime object instance.voidReload reloadableTlsReloadableComponents with the new configuration.Provides the SSL context.SSL parameters.
- 
Field Details- 
ENDPOINT_IDENTIFICATION_HTTPSHTTPS endpoint identification algorithm, verifies certificate cn against host name.- See Also:
 
- 
ENDPOINT_IDENTIFICATION_NONEDisable host name verification.- See Also:
 
 
- 
- 
Method Details- 
builderA new fluent API builder.- Returns:
- builder
 
- 
createCreate TLS configuration from config.- Parameters:
- config- located on the node of the tls configuration (usually this is- ssl)
- Returns:
- a new TLS configuration
 
- 
createCreate TLS with custom configuration.- Parameters:
- tlsConfig- TLS configuration
- Returns:
- a new TLS instance
 
- 
createCreate TLS customizing its configuration.- Parameters:
- consumer- configuration builder consumer
- Returns:
- a new TLS instance
 
- 
prototypeDescription copied from interface:RuntimeType.ApiThe prototype as it was received when creating this runtime object instance.- Specified by:
- prototypein interface- RuntimeType.Api<TlsConfig>
- Returns:
- prototype object used to create this instance
 
- 
newEngineSSL engine from this configuration.- Returns:
- SSL Engine
 
- 
hashCodepublic int hashCode()
- 
equals
- 
createServerSocketCreate a TLS socket for a server.- Returns:
- a new server socket ready for TLS communication
 
- 
createSocketCreate a SSLSocket for the chosen protocol and the given socket.- Parameters:
- alpnProtocols- protocol(s) to use (order is significant)
- socket- existing socket
- address- where SSL socket will connect
- Returns:
- a new socket ready for TLS communication
 
- 
sslContextProvides the SSL context.- Returns:
- SSL context
 
- 
sslParametersSSL parameters.- Returns:
- SSL parameters
 
- 
reloadReload reloadableTlsReloadableComponents with the new configuration.- Parameters:
- tls- new TLS configuration
 
- 
enabledpublic boolean enabled()Whether this TLS configuration is enabled or not.- Returns:
- whether TLS is enabled
 
 
-