Class CredentialSettings

java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.CredentialSettings
All Implemented Interfaces:
Serializable

public class CredentialSettings extends AbstractSettings
Settings for Identity Provider credentials.
Author:
Martin Lindström
See Also:
  • Field Details

  • Method Details

    • getDefaultCredential

      public PkiCredential getDefaultCredential()
      Gets the default IdP credential.
      Returns:
      the credential or null if not assigned
    • getSignCredential

      public PkiCredential getSignCredential()
      Gets the signing IdP credential.
      Returns:
      the credential or null if none is assigned
    • getFutureSignCertificate

      public X509Certificate getFutureSignCertificate()
      Gets the future IdP signing certificate. Assigned before a key-rollover is performed.
      Returns:
      a certificate or null if none is assigned
    • getEncryptCredential

      public PkiCredential getEncryptCredential()
      Gets the encryption IdP credential.
      Returns:
      the credential or null if none is assigned
    • getPreviousEncryptCredential

      public PkiCredential getPreviousEncryptCredential()
      Gets the previous encryption IdP credential. Assigned after a key-rollover has been performed.
      Returns:
      the credential or null if none is assigned
    • getMetadataSignCredential

      public PkiCredential getMetadataSignCredential()
      Gets the credential for signing metadata.
      Returns:
      the credential or null if none has been assigned
    • builder

      public static CredentialSettings.Builder builder()
      Constructs a new CredentialSettings.Builder with no settings.
      Returns:
      the CredentialSettings.Builder
    • withSettings

      public static CredentialSettings.Builder withSettings(Map<String,Object> settings)
      Constructs a new CredentialSettings.Builder with the provided settings.
      Parameters:
      settings - the settings to initialize the builder
      Returns:
      the builder