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
ConstructorDescriptionKeyStoreConfiguration
(Resource resource, char[] storePassword, String storeType) Create a newSslConfiguration.KeyStoreConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
boolean
Create a newSslConfiguration.KeyStoreConfiguration
givenResource
.Create a newSslConfiguration.KeyStoreConfiguration
givenResource
andstorePassword
using the default keystore type.Create a newSslConfiguration.KeyStoreConfiguration
givenResource
,storePassword
, andkeyStoreType
.Create an unconfigured, emptySslConfiguration.KeyStoreConfiguration
.withStoreType
(String storeType) Create a newSslConfiguration.KeyStoreConfiguration
by applying all values from this object and the givenstoreType
.
-
Constructor Details
-
KeyStoreConfiguration
Create a newSslConfiguration.KeyStoreConfiguration
.
-
-
Method Details
-
of
Create a newSslConfiguration.KeyStoreConfiguration
givenResource
.- Parameters:
resource
- resource referencing the key store, must not be null .- Returns:
- the
SslConfiguration.KeyStoreConfiguration
forresource
. - Since:
- 2.0
-
of
public static SslConfiguration.KeyStoreConfiguration of(Resource resource, @Nullable char[] storePassword) Create a newSslConfiguration.KeyStoreConfiguration
givenResource
andstorePassword
using 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.KeyStoreConfiguration
forresource
. - Since:
- 2.0
-
of
public static SslConfiguration.KeyStoreConfiguration of(Resource resource, @Nullable char[] storePassword, String keyStoreType) Create a newSslConfiguration.KeyStoreConfiguration
givenResource
,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.KeyStoreConfiguration
forresource
. - 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 store
resource or null if not configured.
-
getStorePassword
- Returns:
- the key store/trust store password. Empty
char
array if not set.
-
getStoreType
- Returns:
- the trust store type.
-
withStoreType
Create a newSslConfiguration.KeyStoreConfiguration
by applying all values from this object and the givenstoreType
.- Parameters:
storeType
- must not be null.- Returns:
- a new
SslConfiguration.KeyStoreConfiguration
. - Since:
- 2.3
-