Class StoreCredentialConfigurationProperties
java.lang.Object
se.swedenconnect.security.credential.config.properties.AbstractBaseCredentialConfigurationProperties
se.swedenconnect.security.credential.config.properties.StoreCredentialConfigurationProperties
- All Implemented Interfaces:
BaseCredentialConfiguration, StoreCredentialConfiguration
public class StoreCredentialConfigurationProperties
extends AbstractBaseCredentialConfigurationProperties
implements StoreCredentialConfiguration
Configuration properties for creating a
PkiCredential
backed by a Java KeyStore.- Author:
- Martin Lindström
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration properties for a key pair entry.Nested classes/interfaces inherited from interface StoreCredentialConfiguration
StoreCredentialConfiguration.KeyConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Gets the configuration for the key pair entry of the store.Gets whether the credential should be prepared for monitoring.getStore()Gets the configuration for the KeyStore holding the key pair entry.Gets the key store reference.inthashCode()key()Configuration for the key pair entry of the store.monitor()Whether the credential should be prepared for monitoring.voidAssigns the configuration for the key pair entry of the store.voidsetMonitor(Boolean monitor) Assigns whether the credential should be prepared for monitoring.voidAssigns the configuration for the KeyStore holding the key pair entry.voidsetStoreReference(String storeReference) Assigns the key store reference.store()Configuration for theKeyStoreholding the key pair entry.As an alternative to giving the key store configuration, a reference to a key store configuration may be given.Methods inherited from class AbstractBaseCredentialConfigurationProperties
activeFrom, activeTo, expiresAt, getActiveFrom, getActiveTo, getExpiresAt, getIssuedAt, getKeyId, getMetadata, getName, getUsage, issuedAt, keyId, metadata, name, setActiveFrom, setActiveTo, setExpiresAt, setIssuedAt, setKeyId, setName, setUsage, usageMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseCredentialConfiguration
activeFrom, activeTo, expiresAt, issuedAt, keyId, metadata, name, usage
-
Constructor Details
-
StoreCredentialConfigurationProperties
public StoreCredentialConfigurationProperties()
-
-
Method Details
-
getStore
Gets the configuration for the KeyStore holding the key pair entry.- Returns:
- the store configuration
-
setStore
Assigns the configuration for the KeyStore holding the key pair entry.- Parameters:
store- the store configuration
-
getStoreReference
Gets the key store reference.- Returns:
- the store reference
-
setStoreReference
Assigns the key store reference.- Parameters:
storeReference- the store reference
-
getMonitor
Gets whether the credential should be prepared for monitoring.- Returns:
- whether to monitor the credential
-
setMonitor
Assigns whether the credential should be prepared for monitoring.- Parameters:
monitor- whether to monitor the credential
-
getKey
Gets the configuration for the key pair entry of the store.- Returns:
- the key configuration
-
setKey
Assigns the configuration for the key pair entry of the store.- Parameters:
key- the key configuration
-
store
Configuration for theKeyStoreholding the key pair entry.- Specified by:
storein interfaceStoreCredentialConfiguration- Returns:
- key store configuration
-
storeReference
As an alternative to giving the key store configuration, a reference to a key store configuration may be given. This feature may be used when one key store holds several keys.- Specified by:
storeReferencein interfaceStoreCredentialConfiguration- Returns:
- a key store reference
-
monitor
Whether the credential should be prepared for monitoring. If set, a test function and aKeyStoreReloaderwill be assigned.If not present, the default should be
truefor PKCS#11 stores, andfalseotherwise- Specified by:
monitorin interfaceStoreCredentialConfiguration- Returns:
- whether the credential should be prepared for monitoring
-
key
Configuration for the key pair entry of the store.- Specified by:
keyin interfaceStoreCredentialConfiguration- Returns:
- the key entry configuration
-
equals
- Overrides:
equalsin classAbstractBaseCredentialConfigurationProperties
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBaseCredentialConfigurationProperties
-