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()
void
setCertificatePath
(@Nullable String certificatePath) A path to a PEM file containing the certificate chain.void
setKeyPath
(@Nullable String keyPath) A path to a PEM file containing the private key.void
setPassword
(String password) Sets the password to use for the keystore.void
The path to the key store (typically .jks).void
setProvider
(String provider) Sets the keystore provider name.void
Sets 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 thepath
property.- 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 thepath
property.- 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 thepath
property.- 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 thepath
property.- Parameters:
certificatePath
- The certificate chain path- Since:
- 4.10.0
-