Class StoreConfigurationProperties
java.lang.Object
se.swedenconnect.security.credential.config.properties.StoreConfigurationProperties
- All Implemented Interfaces:
StoreConfiguration
Configuration properties for creating a Java
KeyStore
.- Author:
- Martin Lindström
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Additional configuration of PKCS11 keystores.Nested classes/interfaces inherited from interface se.swedenconnect.security.credential.config.StoreConfiguration
StoreConfiguration.Pkcs11Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlocation()
Location of the resource containing the store content.password()
Password used to access the store.pkcs11()
If thetype
is "PKCS11" and a provider that is not statically configured for PKCS#11, additional PKCS#11 configuration needs to be supplied.provider()
Security provider for the store.type()
Type of the store to create, e.g., JKS, PKCS12 or PKCS11.
-
Constructor Details
-
StoreConfigurationProperties
public StoreConfigurationProperties()
-
-
Method Details
-
location
Location of the resource containing the store content.- Specified by:
location
in interfaceStoreConfiguration
- Returns:
- the location of the resource containing the store content
-
password
Password used to access the store.- Specified by:
password
in interfaceStoreConfiguration
- Returns:
- the password used to access the store
-
type
Type of the store to create, e.g., JKS, PKCS12 or PKCS11.- Specified by:
type
in interfaceStoreConfiguration
- Returns:
- the type of the store to create
-
provider
Security provider for the store.- Specified by:
provider
in interfaceStoreConfiguration
- Returns:
- the name of the security provider for the store
-
pkcs11
If thetype
is "PKCS11" and a provider that is not statically configured for PKCS#11, additional PKCS#11 configuration needs to be supplied.Note: The security provider used must support PKCS#11 via the
KeyStoreSpi
interface. The "SunPKCS11" is such a provider.- Specified by:
pkcs11
in interfaceStoreConfiguration
- Returns:
- additional PKCS#11 configuration
-