Interface StoreCredentialConfiguration
- All Superinterfaces:
BaseCredentialConfiguration
- All Known Implementing Classes:
StoreCredentialConfigurationProperties
Configuration interface for creating a
PkiCredential
backed by a Java KeyStore.- Author:
- Martin Lindström
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceConfiguration interface for a key pair entry. -
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 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 interface se.swedenconnect.security.credential.config.BaseCredentialConfiguration
activeFrom, activeTo, expiresAt, issuedAt, keyId, metadata, name, usage
-
Method Details
-
store
Optional<StoreConfiguration> store()Configuration for theKeyStoreholding the key pair entry.- 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.- 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- Returns:
- whether the credential should be prepared for monitoring
-
key
Configuration for the key pair entry of the store.- Returns:
- the key entry configuration
-