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.
  • Constructor Details

    • KeyConfigurationProperties

      public KeyConfigurationProperties()
  • Method Details

    • alias

      public String alias()
      The alias that identifies the key pair in the key store.
      Specified by:
      alias in interface StoreCredentialConfiguration.KeyConfiguration
      Returns:
      the key store alias
    • keyPassword

      public Optional<String> 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:
      keyPassword in interface StoreCredentialConfiguration.KeyConfiguration
      Returns:
      the password to unlock the key entry
    • certificates

      public Optional<String> certificates()
      For some credentials where an underlying KeyStore is 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:
      certificates in interface StoreCredentialConfiguration.KeyConfiguration
      Returns:
      location or content of the certificate or certificate chain in PEM format for externally configured certificates