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
Nested ClassesModifier and TypeClassDescriptionstatic classAdditional configuration of PKCS11 keystores.Nested classes/interfaces inherited from interface StoreConfiguration
StoreConfiguration.Pkcs11Configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the location of the resource containing the store content.Gets the password used to access the store.Gets the additional PKCS#11 configuration.Gets the security provider for the store.getType()Gets the type of the store to create, e.g., JKS, PKCS12 or PKCS11.inthashCode()location()Location of the resource containing the store content.password()Password used to access the store.pkcs11()If thetypeis "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.voidsetLocation(String location) Assigns the location of the resource containing the store content.voidsetPassword(String password) Assigns the password used to access the store.voidAssigns the additional PKCS#11 configuration.voidsetProvider(String provider) Assigns the security provider for the store.voidAssigns the type of the store to create, e.g., JKS, PKCS12 or PKCS11.type()Type of the store to create, e.g., JKS, PKCS12 or PKCS11.
-
Constructor Details
-
StoreConfigurationProperties
public StoreConfigurationProperties()
-
-
Method Details
-
getLocation
Gets the location of the resource containing the store content.- Returns:
- the store location
-
setLocation
Assigns the location of the resource containing the store content.- Parameters:
location- the store location
-
getPassword
Gets the password used to access the store.- Returns:
- the store password
-
setPassword
Assigns the password used to access the store.- Parameters:
password- the store password
-
getType
Gets the type of the store to create, e.g., JKS, PKCS12 or PKCS11.- Returns:
- the store type
-
setType
Assigns the type of the store to create, e.g., JKS, PKCS12 or PKCS11.- Parameters:
type- the store type
-
getProvider
Gets the security provider for the store.- Returns:
- the security provider name
-
setProvider
Assigns the security provider for the store.- Parameters:
provider- the security provider name
-
getPkcs11
Gets the additional PKCS#11 configuration.- Returns:
- the PKCS#11 configuration
-
setPkcs11
Assigns the additional PKCS#11 configuration.- Parameters:
pkcs11- the PKCS#11 configuration
-
location
Location of the resource containing the store content.- Specified by:
locationin interfaceStoreConfiguration- Returns:
- the location of the resource containing the store content
-
password
Password used to access the store.- Specified by:
passwordin interfaceStoreConfiguration- Returns:
- the password used to access the store
-
type
Type of the store to create, e.g., JKS, PKCS12 or PKCS11.- Specified by:
typein interfaceStoreConfiguration- Returns:
- the type of the store to create
-
provider
Security provider for the store.- Specified by:
providerin interfaceStoreConfiguration- Returns:
- the name of the security provider for the store
-
pkcs11
If thetypeis "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
KeyStoreSpiinterface. The "SunPKCS11" is such a provider.- Specified by:
pkcs11in interfaceStoreConfiguration- Returns:
- additional PKCS#11 configuration
-
equals
-
hashCode
-