@ConfigurationProperties(value="micronaut.server.ssl") public class ServerSslConfiguration extends SslConfiguration
SslConfiguration
used for HTTP servers.Modifier and Type | Class and Description |
---|---|
static class |
ServerSslConfiguration.DefaultKeyConfiguration
The default
SslConfiguration.KeyConfiguration . |
static class |
ServerSslConfiguration.DefaultKeyStoreConfiguration
The default
SslConfiguration.KeyStoreConfiguration . |
static class |
ServerSslConfiguration.DefaultTrustStoreConfiguration
The default
SslConfiguration.TrustStoreConfiguration . |
SslConfiguration.KeyConfiguration, SslConfiguration.KeyStoreConfiguration, SslConfiguration.TrustStoreConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX
The prefix used to resolve this configuration.
|
buildSelfSigned, DEFAULT_BUILDSELFSIGNED, DEFAULT_ENABLED, DEFAULT_PORT, DEFAULT_PROTOCOL, port
Constructor and Description |
---|
ServerSslConfiguration()
Constructs the default server SSL configuration.
|
ServerSslConfiguration(DefaultSslConfiguration defaultSslConfiguration,
DefaultSslConfiguration.DefaultKeyConfiguration defaultKeyConfiguration,
DefaultSslConfiguration.DefaultKeyStoreConfiguration defaultKeyStoreConfiguration,
SslConfiguration.TrustStoreConfiguration defaultTrustStoreConfiguration)
Overrides the default constructor and sets
SslConfiguration.isEnabled() to true. |
Modifier and Type | Method and Description |
---|---|
void |
setBuildSelfSigned(boolean buildSelfSigned)
Sets whether to build a self-signed certificate.
|
void |
setPort(int port)
Deprecated.
Please use
micronaut.server.ssl.port instead (setPort(int) ). |
buildSelfSigned, getCiphers, getClientAuthentication, getHandshakeTimeout, getKey, getKeyStore, getPort, getProtocol, getProtocols, getTrustStore, isEnabled, readExisting, setCiphers, setClientAuthentication, setEnabled, setHandshakeTimeout, setKey, setKeyStore, setProtocol, setProtocols, setTrustStore
public static final String PREFIX
@Inject public ServerSslConfiguration(DefaultSslConfiguration defaultSslConfiguration, DefaultSslConfiguration.DefaultKeyConfiguration defaultKeyConfiguration, DefaultSslConfiguration.DefaultKeyStoreConfiguration defaultKeyStoreConfiguration, SslConfiguration.TrustStoreConfiguration defaultTrustStoreConfiguration)
SslConfiguration.isEnabled()
to true.defaultSslConfiguration
- The default SSL configdefaultKeyConfiguration
- The default key configdefaultKeyStoreConfiguration
- The default keystore configdefaultTrustStoreConfiguration
- The Default truststore configpublic ServerSslConfiguration()
public void setPort(int port)
micronaut.server.ssl.port
instead (setPort(int)
).setPort
in class SslConfiguration
port
- The portpublic void setBuildSelfSigned(boolean buildSelfSigned)
setBuildSelfSigned
in class SslConfiguration
buildSelfSigned
- True if a certificate should be built