Class SslConfiguration.KeyStoreConfiguration
java.lang.Object
org.springframework.vault.support.SslConfiguration.KeyStoreConfiguration
- Enclosing class:
- SslConfiguration
Configuration for a key store/trust store.
- Since:
- 1.1
-
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreConfiguration(Resource resource, char @Nullable [] storePassword, String storeType) Create a newSslConfiguration.KeyStoreConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionchar @Nullable []booleanCreate a newSslConfiguration.KeyStoreConfigurationgivenResource.Create a newSslConfiguration.KeyStoreConfigurationgivenResourceandstorePasswordusing the default keystore type.Create a newSslConfiguration.KeyStoreConfigurationgivenResource,storePassword, andkeyStoreType.Create an unconfigured, emptySslConfiguration.KeyStoreConfiguration.withStoreType(String storeType) Create a newSslConfiguration.KeyStoreConfigurationby applying all values from this object and the givenstoreType.
-
Constructor Details
-
KeyStoreConfiguration
Create a newSslConfiguration.KeyStoreConfiguration.
-
-
Method Details
-
of
Create a newSslConfiguration.KeyStoreConfigurationgivenResource.- Parameters:
resource- resource referencing the key store, must not be null .- Returns:
- the
SslConfiguration.KeyStoreConfigurationforresource. - Since:
- 2.0
-
of
public static SslConfiguration.KeyStoreConfiguration of(Resource resource, char @Nullable [] storePassword) Create a newSslConfiguration.KeyStoreConfigurationgivenResourceandstorePasswordusing the default keystore type.- Parameters:
resource- resource referencing the key store, must not be null .storePassword- key store password, may be null.- Returns:
- the
SslConfiguration.KeyStoreConfigurationforresource. - Since:
- 2.0
-
of
public static SslConfiguration.KeyStoreConfiguration of(Resource resource, char @Nullable [] storePassword, String keyStoreType) Create a newSslConfiguration.KeyStoreConfigurationgivenResource,storePassword, andkeyStoreType.- Parameters:
resource- resource referencing the key store, must not be null .storePassword- key store password, may be null.keyStoreType- key store type, must not be null.- Returns:
- the
SslConfiguration.KeyStoreConfigurationforresource. - Since:
- 2.3
-
unconfigured
Create an unconfigured, emptySslConfiguration.KeyStoreConfiguration.- Returns:
- unconfigured, empty
SslConfiguration.KeyStoreConfiguration. - Since:
- 2.0
-
isPresent
public boolean isPresent()- Returns:
- true if the resource is present.
- Since:
- 2.0
-
getResource
- Returns:
- the
key storeresource or null if not configured.
-
getStorePassword
public char @Nullable [] getStorePassword()- Returns:
- the key store/trust store password. Empty
chararray if not set.
-
getStoreType
- Returns:
- the trust store type.
-
withStoreType
Create a newSslConfiguration.KeyStoreConfigurationby applying all values from this object and the givenstoreType.- Parameters:
storeType- must not be null.- Returns:
- a new
SslConfiguration.KeyStoreConfiguration. - Since:
- 2.3
-