Package io.micronaut.http.ssl
Class SslConfiguration.KeyStoreConfiguration
java.lang.Object
io.micronaut.http.ssl.SslConfiguration.KeyStoreConfiguration
- Direct Known Subclasses:
ClientSslConfiguration.DefaultKeyStoreConfiguration,DefaultSslConfiguration.DefaultKeyStoreConfiguration,ServerSslConfiguration.DefaultKeyStoreConfiguration,ServiceHttpClientConfiguration.ServiceSslClientConfiguration.DefaultKeyStoreConfiguration
- Enclosing class:
- SslConfiguration
Configuration properties for SSL key store.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA path to a PEM file containing the certificate chain.A path to a PEM file containing the private key of the server.getPath()The path to the key store (typically .jks).getType()voidsetCertificatePath(@Nullable String certificatePath) A path to a PEM file containing the certificate chain.voidsetKeyPath(@Nullable String keyPath) A path to a PEM file containing the private key.voidsetPassword(String password) Sets the password to use for the keystore.voidThe path to the key store (typically .jks).voidsetProvider(String provider) Sets the keystore provider name.voidSets the type of keystore.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
KeyStoreConfiguration
public KeyStoreConfiguration()
-
-
Method Details
-
getPath
The path to the key store (typically .jks). Can also point to a PEM file containing a private key followed by the X.509 trust chain. Can useclasspath:,file:,string:orbase64:.- Returns:
- The resource containing the key store
-
getPassword
- Returns:
- The password to the keyStore
-
getType
- Returns:
- The key store type
-
getProvider
- Returns:
- Provider for the key store.
-
setPath
The path to the key store (typically .jks). Can also point to a PEM file containing a private key followed by the X.509 trust chain. Can useclasspath:,file:,string:orbase64:.- Parameters:
path- The resource containing the key store
-
setPassword
Sets the password to use for the keystore.- Parameters:
password- The password
-
setType
Sets the type of keystore.- Parameters:
type- The keystore type
-
setProvider
Sets the keystore provider name.- Parameters:
provider- The provider
-
getKeyPath
A path to a PEM file containing the private key of the server. Can useclasspath:,file:,string:orbase64:. Cannot be set at the same time as thepathproperty.- Returns:
- The key path
- Since:
- 4.10.0
-
setKeyPath
A path to a PEM file containing the private key. Can useclasspath:,file:,string:orbase64:. Cannot be set at the same time as thepathproperty.- Parameters:
keyPath- The key path- Since:
- 4.10.0
-
getCertificatePath
A path to a PEM file containing the certificate chain. Can useclasspath:,file:,string:orbase64:. Cannot be set at the same time as thepathproperty.- Returns:
- The certificate chain path
- Since:
- 4.10.0
-
setCertificatePath
A path to a PEM file containing the certificate chain. Can useclasspath:,file:,string:orbase64:. Cannot be set at the same time as thepathproperty.- Parameters:
certificatePath- The certificate chain path- Since:
- 4.10.0
-