Class AbstractSAMLProfileConfiguration

All Implemented Interfaces:
InterceptorAwareProfileConfiguration, SAMLProfileConfiguration, ConditionalProfileConfiguration, ProfileConfiguration, SAMLProfileConfiguration, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent
Direct Known Subclasses:
AbstractSAML1ArtifactAwareProfileConfiguration, AbstractSAML2ProfileConfiguration, ArtifactResolutionProfileConfiguration

public abstract class AbstractSAMLProfileConfiguration extends AbstractInterceptorAwareProfileConfiguration implements SAMLProfileConfiguration
Base class for SAML profile configurations.
  • Field Details

  • Constructor Details

    • AbstractSAMLProfileConfiguration

      public AbstractSAMLProfileConfiguration(@Nonnull @NotEmpty String profileId)
      Constructor.
      Parameters:
      profileId - ID of the communication profile
  • Method Details

    • isSignRequests

      public boolean isSignRequests(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isSignRequests in interface SAMLProfileConfiguration
    • setSignRequests

      public void setSignRequests(boolean flag)
      Set whether generated requests should be signed.
      Parameters:
      flag - flag to set
    • setSignRequestsPredicate

      public void setSignRequestsPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set the predicate used to determine if generated requests should be signed.
      Parameters:
      predicate - predicate used to determine if generated requests should be signed
      Since:
      4.0.0
    • isSignResponses

      public boolean isSignResponses(@Nullable ProfileRequestContext profileRequestContext)
      Specified by:
      isSignResponses in interface SAMLProfileConfiguration
    • setSignResponses

      public void setSignResponses(boolean flag)
      Set whether generated responses should be signed.
      Parameters:
      flag - flag to set
    • setSignResponsesPredicate

      public void setSignResponsesPredicate(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set the predicate used to determine if generated responses should be signed.
      Parameters:
      predicate - predicate used to determine if generated responses should be signed
      Since:
      4.0.0
    • getMessageHandler

      @Nullable public Function<MessageContext,Exception> getMessageHandler(@Nullable MessageContext messageContext)
      Specified by:
      getMessageHandler in interface SAMLProfileConfiguration
    • setMessageHandler

      public void setMessageHandler(@Nullable Function<MessageContext,Exception> handler)
      Set a handler for the SAML message.
      Parameters:
      handler - message handler
      Since:
      5.0.0
    • setMessageDecorator

      @Deprecated(forRemoval=true, since="5.0.0") public void setMessageDecorator(@Nullable Function<MessageContext,Exception> handler)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set a handler for the SAML message.
      Parameters:
      handler - message handler
      Since:
      5.0.0
    • setMessageHandlerLookupStrategy

      public void setMessageHandlerLookupStrategy(@Nonnull Function<MessageContext,Function<MessageContext,Exception>> strategy)
      Set a lookup strategy for the handler for the SAML message.
      Parameters:
      strategy - lookup strategy
      Since:
      5.0.0