java.lang.Object
io.helidon.webserver.ConfiguredTlsManager
- All Implemented Interfaces:
TlsManager
The default configured
TlsManager implementation.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfiguredTlsManager(String name, String type) Configured tls manager constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureAndSet(WebServerTls tlsConfig, SSLContext sslContext) Deprecated.this method will be removed in a future release.protected TrustManagerFactorycreateTmf(WebServerTls tlsConfig) Deprecated.this method will be removed in a future release.voidinit(WebServerTls tlsConfig) Always called before any other method on this type.protected voidinitSslContext(WebServerTls tlsConfig, KeyManager[] keyManagers, TrustManager[] trustManagers) Deprecated.this method will be removed in a future release.name()The manager name.protected voidreload(WebServerTls tlsConfig, KeyManager[] keyManagers, TrustManager[] trustManagers) Deprecated.this method will be removed in a future release.protected SecureRandomsecureRandom(WebServerTls tlsConfig) Load secure random.SSL context created by this manager.voidsubscribe(Consumer<SSLContext> sslContextConsumer) Callers can subscribe to updates to be notified when the SSL context changes.protected TrustManagerFactoryCreates 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:TlsManagerSSL context created by this manager. This method is called only afterTlsManager.init(WebServerTls)and only ifWebServerTls.enabled()istrue.- Specified by:
sslContextin interfaceTlsManager- Returns:
- the SSL context to use
-
subscribe
Description copied from interface:TlsManagerCallers can subscribe to updates to be notified when the SSL context changes.- Specified by:
subscribein 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:TlsManagerAlways 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:
initin 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 theSSLContextbased upon configuration, and then store the instance.- Parameters:
tlsConfig- TLS configsslContext- ssl context to store
-