Class MetadataSettings

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

public class MetadataSettings extends AbstractSettings
Settings for the IdP metadata.
Author:
Martin Lindström
See Also:
  • Field Details

    • SAML_METADATA_TEMPLATE

      public static final String SAML_METADATA_TEMPLATE
      A template for the IdP metadata. A Resource.
      See Also:
    • SAML_METADATA_CACHE_DURATION_DEFAULT

      public static final Duration SAML_METADATA_CACHE_DURATION_DEFAULT
      Default cache duration.
    • SAML_METADATA_CACHE_DURATION

      public static final String SAML_METADATA_CACHE_DURATION
      Tells how long the published IdP metadata can remain in a cache. A Duration.
      See Also:
    • SAML_METADATA_VALIDITY_DEFAULT

      public static final Duration SAML_METADATA_VALIDITY_DEFAULT
      Default metadata validity.
    • SAML_METADATA_VALIDITY

      public static final String SAML_METADATA_VALIDITY
      Tells for how long a published metadata entry should be valid. A Duration.
      See Also:
    • SAML_METADATA_DIGEST_METHODS

      public static final String SAML_METADATA_DIGEST_METHODS
      The alg:DigestMethod elements that should be included in the metadata. A List of strings.
      See Also:
    • SAML_METADATA_DIGEST_METHODS_UNDER_ROLE

      public static final String SAML_METADATA_DIGEST_METHODS_UNDER_ROLE
      Whether alg:DigestMethod elements should be placed in an Extensions element under the role descriptor (i.e., the IDPSSODescriptor). If false, the alg:DigestMethod elements are included as elements in the Extensions element of the EntityDescriptor. A Boolean.
      See Also:
    • SAML_METADATA_SIGNING_METHODS

      public static final String SAML_METADATA_SIGNING_METHODS
      The alg:SigningMethod elements that should be included in the metadata. A List of MetadataSettings.SigningMethodSettings.
      See Also:
    • SAML_METADATA_SIGNING_METHODS_UNDER_ROLE

      public static final String SAML_METADATA_SIGNING_METHODS_UNDER_ROLE
      Whether alg:SigningMethod elements should be placed in an Extensions element under the role descriptor (i.e., the IDPSSODescriptor). If false, the alg:SigningMethod elements are included as elements in the Extensions element of the EntityDescriptor. A Boolean.
      See Also:
    • SAML_METADATA_ENCRYPTION_METHODS

      public static final String SAML_METADATA_ENCRYPTION_METHODS
      The md:EncryptionMethod elements that should be included under the md:KeyDescriptor for the encryption key. Note that these algorithms must match the configured encryption key. List of MetadataSettings.EncryptionMethodSettings.
      See Also:
    • SAML_METADATA_UI_INFO

      public static final String SAML_METADATA_UI_INFO
      The UIInfo element. A MetadataSettings.UIInfoSettings.
      See Also:
    • SAML_METADATA_REQUESTED_PRINCIPAL_SELECTION

      public static final String SAML_METADATA_REQUESTED_PRINCIPAL_SELECTION
      Attribute names that should be included under the RequestedPrincipalSelection metadata extension. A List of Strings.
      See Also:
    • SAML_METADATA_ORGANIZATION

      public static final String SAML_METADATA_ORGANIZATION
      The Organization element. A MetadataSettings.OrganizationSettings.
      See Also:
    • SAML_METADATA_CONTACT_PERSONS

      public static final String SAML_METADATA_CONTACT_PERSONS
      See Also:
  • Constructor Details

    • MetadataSettings

      protected MetadataSettings(Map<String,Object> settings)
      Constructor.
      Parameters:
      settings - the settings
  • Method Details