java.lang.Object
io.helidon.webserver.ConfiguredTlsManager
- All Implemented Interfaces:
TlsManager
The default configured
TlsManager
implementation.-
Constructor Summary
ModifierConstructorDescriptionprotected
ConfiguredTlsManager
(String name, String type) Configured tls manager constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureAndSet
(WebServerTls tlsConfig, SSLContext sslContext) Deprecated.this method will be removed in a future release.protected TrustManagerFactory
createTmf
(WebServerTls tlsConfig) Deprecated.this method will be removed in a future release.void
init
(WebServerTls tlsConfig) Always called before any other method on this type.protected void
initSslContext
(WebServerTls tlsConfig, KeyManager[] keyManagers, TrustManager[] trustManagers) Deprecated.this method will be removed in a future release.name()
The manager name.protected void
reload
(WebServerTls tlsConfig, KeyManager[] keyManagers, TrustManager[] trustManagers) Deprecated.this method will be removed in a future release.protected SecureRandom
secureRandom
(WebServerTls tlsConfig) Load secure random.SSL context created by this manager.void
subscribe
(Consumer<SSLContext> sslContextConsumer) Callers can subscribe to updates to be notified when the SSL context changes.protected TrustManagerFactory
Creates a trust all trust manager factory.type()
The manager type.
-
Constructor Details
-
ConfiguredTlsManager
Configured tls manager constructor.- Parameters:
name
- the manager nametype
- the manager type
-
-
Method Details
-
name
The manager name.- Returns:
- manager name
-
type
The manager type.- Returns:
- manager type
-
sslContext
Description copied from interface:TlsManager
SSL context created by this manager. This method is called only afterTlsManager.init(WebServerTls)
and only ifWebServerTls.enabled()
istrue
.- Specified by:
sslContext
in interfaceTlsManager
- Returns:
- the SSL context to use
-
subscribe
Description copied from interface:TlsManager
Callers can subscribe to updates to be notified when the SSL context changes.- Specified by:
subscribe
in interfaceTlsManager
- Parameters:
sslContextConsumer
- the consumer that will receive the new/update context after it has been reloaded by the manager
-
init
Description copied from interface:TlsManager
Always called before any other method on this type. This method is only called when TLS is enabled and no explicit SSLContext was passed to the builder. In case the TLS is disabled, none of the methods on this type can be called.- Specified by:
init
in interfaceTlsManager
- Parameters:
tlsConfig
- TLS configuration
-
initSslContext
@Deprecated protected void initSslContext(WebServerTls tlsConfig, KeyManager[] keyManagers, TrustManager[] trustManagers) Deprecated.this method will be removed in a future release.Initialize and set the SSL context given the provided configuration.- Parameters:
tlsConfig
- the tls configkeyManagers
- the key managerstrustManagers
- the trust managers
-
reload
@Deprecated protected void reload(WebServerTls tlsConfig, KeyManager[] keyManagers, TrustManager[] trustManagers) Deprecated.this method will be removed in a future release.Called when there is a newSSLContext
.- Parameters:
tlsConfig
- the tls configkeyManagers
- the key managerstrustManagers
- the trust managers
-
secureRandom
Load secure random.- Parameters:
tlsConfig
- TLS configuration- Returns:
- secure random
-
trustAllTmf
Creates a trust all trust manager factory.- Returns:
- a new trust manager factory trusting all
-
createTmf
Deprecated.this method will be removed in a future release.Create a new trust manager factory based on the configuration (i.e., the algorithm and provider).- Parameters:
tlsConfig
- TLS config- Returns:
- a new trust manager factory
-
configureAndSet
Deprecated.this method will be removed in a future release.Configure theSSLContext
based upon configuration, and then store the instance.- Parameters:
tlsConfig
- TLS configsslContext
- ssl context to store
-