Class AbstractSAML1AssertionProducingProfileConfiguration

All Implemented Interfaces:
InterceptorAwareProfileConfiguration, SAMLProfileConfiguration, ConditionalProfileConfiguration, ProfileConfiguration, SAMLArtifactAwareProfileConfiguration, SAMLAssertionProducingProfileConfiguration, SAMLProfileConfiguration, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent
Direct Known Subclasses:
AttributeQueryProfileConfiguration, BrowserSSOProfileConfiguration

public abstract class AbstractSAML1AssertionProducingProfileConfiguration extends AbstractSAML1ArtifactAwareProfileConfiguration implements SAMLAssertionProducingProfileConfiguration
Base class for IdP SAML 1.x profile configurations that produce assertions.
  • Field Details

    • signAssertionsPredicate

      @Nonnull private Predicate<ProfileRequestContext> signAssertionsPredicate
      Predicate used to determine whether to sign assertions.
    • includeNotBeforePredicate

      @Nonnull private Predicate<ProfileRequestContext> includeNotBeforePredicate
      Predicate used to determine whether to include a NotBefore attribute in the Conditions of generated assertions.
    • assertionLifetimeLookupStrategy

      @Nonnull private Function<ProfileRequestContext,Duration> assertionLifetimeLookupStrategy
      Lookup function to supply assertionLifetime property.
    • additionalAudiencesLookupStrategy

      @Nonnull private Function<ProfileRequestContext,Set<String>> additionalAudiencesLookupStrategy
      Lookup function to supply assertionAudiences property.
  • Constructor Details

    • AbstractSAML1AssertionProducingProfileConfiguration

      public AbstractSAML1AssertionProducingProfileConfiguration(@Nonnull @NotEmpty String profileId)
      Constructor.
      Parameters:
      profileId - ID of the communication profile, never null or empty
  • Method Details

    • isSignAssertions

      public boolean isSignAssertions(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isSignAssertions in interface SAMLAssertionProducingProfileConfiguration
    • setSignAssertions

      public void setSignAssertions(boolean flag)
      Set whether generated assertions should be signed.
      Parameters:
      flag - flag to set
    • setSignAssertionsPredicate

      public void setSignAssertionsPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set the predicate used to determine if generated assertions should be signed.
      Parameters:
      predicate - predicate used to determine if generated assertions should be signed
    • isIncludeConditionsNotBefore

      public boolean isIncludeConditionsNotBefore(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isIncludeConditionsNotBefore in interface SAMLAssertionProducingProfileConfiguration
    • setIncludeConditionsNotBefore

      public void setIncludeConditionsNotBefore(boolean flag)
      Set whether to include a NotBefore attribute in the Conditions of generated assertions.
      Parameters:
      flag - flag to set
    • setIncludeConditionsNotBeforePredicate

      public void setIncludeConditionsNotBeforePredicate(@Nonnull Predicate<ProfileRequestContext> condition)
      Set a condition to determine whether to include a NotBefore attribute in the Conditions of generated assertions.
      Parameters:
      condition - lookup strategy
    • getAssertionLifetime

      @Nonnull public Duration getAssertionLifetime(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      getAssertionLifetime in interface SAMLAssertionProducingProfileConfiguration
    • setAssertionLifetime

      public void setAssertionLifetime(@Nonnull Duration lifetime)
      Set the lifetime of an assertion.
      Parameters:
      lifetime - lifetime of an assertion
    • setAssertionLifetimeLookupStrategy

      public void setAssertionLifetimeLookupStrategy(@Nonnull Function<ProfileRequestContext,Duration> strategy)
      Set a lookup strategy for the lifetime of an assertion.
      Parameters:
      strategy - lookup strategy
    • getAssertionAudiences

      @Nonnull @Unmodifiable @NotLive public Set<String> getAssertionAudiences(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      getAssertionAudiences in interface SAMLAssertionProducingProfileConfiguration
    • setAdditionalAudiencesForAssertion

      @Deprecated(since="5.0.0", forRemoval=true) public void setAdditionalAudiencesForAssertion(@Nullable Collection<String> audiences)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated, replacement is setAssertionAudiences(Collection).
      Parameters:
      audiences - the additional audiences
    • setAdditionalAudiencesForAssertionLookupStrategy

      @Deprecated(since="5.0.0", forRemoval=true) public void setAdditionalAudiencesForAssertionLookupStrategy(@Nonnull Function<ProfileRequestContext,Set<String>> strategy)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      strategy - lookup strategy
    • setAssertionAudiences

      public void setAssertionAudiences(@Nullable Collection<String> audiences)
      Set the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the assertion, with which an assertion may be shared.
      Parameters:
      audiences - the additional audiences
    • setAssertionAudiencesLookupStrategy

      public void setAssertionAudiencesLookupStrategy(@Nonnull Function<ProfileRequestContext,Set<String>> strategy)
      Set a lookup strategy for the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the assertion, with which an assertion may be shared.
      Parameters:
      strategy - lookup strategy