Class AssertionSettings

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

public class AssertionSettings extends AbstractSettings
Settings that controls how SAML Assertions are issued.
Author:
Martin Lindström
See Also:
  • Field Details

    • NOT_ON_OR_AFTER_DURATION_DEFAULT

      public static final Duration NOT_ON_OR_AFTER_DURATION_DEFAULT
      Default value for the NOT_ON_OR_AFTER_DURATION setting.
    • NOT_BEFORE_DURATION_DEFAULT

      public static final Duration NOT_BEFORE_DURATION_DEFAULT
      Default value for the NOT_BEFORE_DURATION setting.
    • ENCRYPT_ASSERTIONS_DEFAULT

      public static final Boolean ENCRYPT_ASSERTIONS_DEFAULT
      Default value for the ENCRYPT_ASSERTIONS setting.
    • ENCRYPT_ASSERTIONS

      public static final String ENCRYPT_ASSERTIONS
      Tells whether the Identity Provider encrypts assertions. A Boolean.
      See Also:
    • NOT_ON_OR_AFTER_DURATION

      public static final String NOT_ON_OR_AFTER_DURATION
      A setting that tells the time restrictions the IdP puts on an Assertion concerning "not on or after". A Duration.
      See Also:
    • NOT_BEFORE_DURATION

      public static final String NOT_BEFORE_DURATION
      A setting that tells the time restrictions the IdP puts on an Assertion concerning "not before". A Duration.
      See Also:
  • Constructor Details

    • AssertionSettings

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

    • getEncryptAssertions

      public Boolean getEncryptAssertions()
      Tells whether the Identity Provider encrypts assertions.
      Returns:
      true if assertions should be encrypted and false otherwise.
    • getNotOnOrAfterDuration

      public Duration getNotOnOrAfterDuration()
      Gets the Duration that tells the time restrictions the IdP puts on an Assertion concerning "not on or after".
      Returns:
      a Duration
    • getNotBeforeDuration

      public Duration getNotBeforeDuration()
      Gets the Duration that tells the time restrictions the IdP puts on an Assertion concerning "not before".
      Returns:
      a Duration
    • builder

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

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