Class ProcessAssertionsForAuthentication

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class ProcessAssertionsForAuthentication extends AbstractAuthenticationAction
Perform processing of a SAML 2 Response's Assertions that have been validated by earlier actions for use in finalization of SAML-based authentication by later actions.
  • Field Details

  • Constructor Details

    • ProcessAssertionsForAuthentication

      public ProcessAssertionsForAuthentication()
      Constructor.
  • Method Details

    • setAuthnAssertionSelectionStrategy

      public void setAuthnAssertionSelectionStrategy(@Nonnull Function<List<Assertion>,Assertion> strategy)
      Set the strategy function for selecting which of multiple valid Assertions to use.
      Parameters:
      strategy - the new strategy function
    • setAuthnStatementSelectionStrategy

      public void setAuthnStatementSelectionStrategy(@Nonnull Function<Assertion,AuthnStatement> strategy)
      Set the strategy function for selecting which of multiple AuthnStatements to use.
      Parameters:
      strategy - the new strategy function
    • setResponseResolver

      public void setResponseResolver(@Nonnull Function<ProfileRequestContext,Response> strategy)
      Set the strategy function which resolves the response to process.
      Parameters:
      strategy - the new strategy function
    • setSAMLAuthnContextLookupStrategy

      public void setSAMLAuthnContextLookupStrategy(@Nonnull Function<ProfileRequestContext,SAMLAuthnContext> strategy)
      Set the lookup strategy used to locate the SAMLAuthnContext.
      Parameters:
      strategy - the new strategy function
    • doPreExecute

      protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
      Performs this authentication action's pre-execute step. Default implementation just returns true.
      Overrides:
      doPreExecute in class AbstractAuthenticationAction
      Parameters:
      profileRequestContext - the current IdP profile request context
      authenticationContext - the current authentication context
      Returns:
      true iff execution should continue
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
      Performs this authentication action. Default implementation throws an exception.
      Overrides:
      doExecute in class AbstractAuthenticationAction
      Parameters:
      profileRequestContext - the current IdP profile request context
      authenticationContext - the current authentication context