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
Modifier and TypeClassDescriptionstatic class
Configuration properties for a key pair entry.Nested classes/interfaces inherited from interface se.swedenconnect.security.credential.config.StoreCredentialConfiguration
StoreCredentialConfiguration.KeyConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkey()
Configuration for the key pair entry of the store.monitor()
Whether the credential should be prepared for monitoring.store()
Configuration for theKeyStore
holding 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 se.swedenconnect.security.credential.config.properties.AbstractBaseCredentialConfigurationProperties
expiresAt, issuedAt, keyId, metadata, name
-
Constructor Details
-
StoreCredentialConfigurationProperties
public StoreCredentialConfigurationProperties()
-
-
Method Details
-
store
Configuration for theKeyStore
holding the key pair entry.- Specified by:
store
in 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:
storeReference
in interfaceStoreCredentialConfiguration
- Returns:
- a key store reference
-
monitor
Whether the credential should be prepared for monitoring. If set, a test function and aKeyStoreReloader
will be assigned.If not present, the default should be
true
for PKCS#11 stores, andfalse
otherwise- Specified by:
monitor
in interfaceStoreCredentialConfiguration
- Returns:
- whether the credential should be prepared for monitoring
-
key
Configuration for the key pair entry of the store.- Specified by:
key
in interfaceStoreCredentialConfiguration
- Returns:
- the key entry configuration
-