Package io.quarkus.tls
Interface TlsConfigurationRegistry
public interface TlsConfigurationRegistry
-
Method Summary
Modifier and TypeMethodDescriptionReturns the named transport layer security configuration.Returns the default transport layer security configuration.voidregister(String name, TlsConfiguration configuration) Registers a TLS configuration into the registry.
-
Method Details
-
get
Returns the named transport layer security configuration.- Parameters:
name- the name- Returns:
- the configuration, empty if not configured.
-
getDefault
Optional<TlsConfiguration> getDefault()Returns the default transport layer security configuration.- Returns:
- the configuration, empty if not configured.
-
register
Registers a TLS configuration into the registry. Note that only subsequents calls toget(String)will return the configuration.The passed configuration is not validated, so it's up to the caller to ensure the configuration is correct.
- Parameters:
name- the name of the configuration, cannot benull, cannot be<default>.configuration- the configuration cannot benull.
-