Class SslConfiguration.KeyConfiguration
java.lang.Object
org.springframework.vault.support.SslConfiguration.KeyConfiguration
- Enclosing class:
- SslConfiguration
Configuration for a key in a keystore.
- Since:
- 2.2
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionchar[]
Create aSslConfiguration.KeyConfiguration
to configure a specific key within aKeyStore
.Create an unconfigured, emptySslConfiguration.KeyConfiguration
.
-
Method Details
-
unconfigured
Create an unconfigured, emptySslConfiguration.KeyConfiguration
.- Returns:
- unconfigured, empty
SslConfiguration.KeyConfiguration
.
-
of
public static SslConfiguration.KeyConfiguration of(@Nullable char[] keyPassword, @Nullable String keyAlias) Create aSslConfiguration.KeyConfiguration
to configure a specific key within aKeyStore
.- Parameters:
keyPassword
- the key password to use. UsesSslConfiguration.KeyStoreConfiguration.getStorePassword()
if leftnull
.keyAlias
- the key alias to use. Uses the first alias if leftnull
.- Returns:
- the
SslConfiguration.KeyConfiguration
.
-
getKeyPassword
- Returns:
- the key password to use.
-
getKeyAlias
- Returns:
- key alias to use.
-