Class StoreCredentialConfigurationProperties.KeyConfigurationProperties
java.lang.Object
se.swedenconnect.security.credential.config.properties.StoreCredentialConfigurationProperties.KeyConfigurationProperties
- All Implemented Interfaces:
StoreCredentialConfiguration.KeyConfiguration
- Enclosing class:
StoreCredentialConfigurationProperties
public static class StoreCredentialConfigurationProperties.KeyConfigurationProperties
extends Object
implements StoreCredentialConfiguration.KeyConfiguration
Configuration properties for a key pair entry.
- Author:
- Martin Lindström
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalias()The alias that identifies the key pair in the key store.For some credentials where an underlyingKeyStoreis being used, an external certificate should be used.booleangetAlias()Gets the alias that identifies the key pair in the key store.Gets the location or content of the certificate or certificate chain in PEM format.Gets the password to unlock the key entry identified by the given alias.inthashCode()The password to unlock the key entry identified by the given alias.voidAssigns the alias that identifies the key pair in the key store.voidsetCertificates(String certificates) Assigns the location or content of the certificate or certificate chain in PEM format.voidsetKeyPassword(String keyPassword) Assigns the password to unlock the key entry identified by the given alias.
-
Constructor Details
-
KeyConfigurationProperties
public KeyConfigurationProperties()
-
-
Method Details
-
getAlias
Gets the alias that identifies the key pair in the key store.- Returns:
- the key alias
-
setAlias
Assigns the alias that identifies the key pair in the key store.- Parameters:
alias- the key alias
-
getCertificates
Gets the location or content of the certificate or certificate chain in PEM format.- Returns:
- the certificate(s) location or content
-
setCertificates
Assigns the location or content of the certificate or certificate chain in PEM format.- Parameters:
certificates- the certificate(s) location or content
-
getKeyPassword
Gets the password to unlock the key entry identified by the given alias.- Returns:
- the key password
-
setKeyPassword
Assigns the password to unlock the key entry identified by the given alias.- Parameters:
keyPassword- the key password
-
alias
The alias that identifies the key pair in the key store.- Specified by:
aliasin interfaceStoreCredentialConfiguration.KeyConfiguration- Returns:
- the key store alias
-
keyPassword
The password to unlock the key entry identified by the given alias. If not given, the store password will be used (in these cases, using a store reference will not function).- Specified by:
keyPasswordin interfaceStoreCredentialConfiguration.KeyConfiguration- Returns:
- the password to unlock the key entry
-
certificates
For some credentials where an underlyingKeyStoreis being used, an external certificate should be used. The most typical example would be a PKCS#11 key store where the certificate of the key pair resides outside the HSM device. This setting holds the location or content of the certificate or certificate chain in PEM format.- Specified by:
certificatesin interfaceStoreCredentialConfiguration.KeyConfiguration- Returns:
- location or content of the certificate or certificate chain in PEM format for externally configured certificates
-
equals
-
hashCode
-