Class AddLogoutRequest

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction

public class AddLogoutRequest
extends AbstractProfileAction
Action that creates a LogoutRequest based on an SAML2SPSession in a LogoutPropagationContext and sets it as the message returned by InOutOperationContext.getOutboundMessageContext().

If an issuer value is returned via a lookup strategy, then it's set as the Issuer of the message.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX, EventIds.INVALID_PROFILE_CTX, EventIds.MESSAGE_PROC_ERROR
Postcondition:
ProfileRequestContext.getOutboundMessageContext().getMessage() != null
  • Field Details

  • Constructor Details

    • AddLogoutRequest

      public AddLogoutRequest()
      Constructor.
  • Method Details

    • setOverwriteExisting

      public void setOverwriteExisting​(boolean flag)
      Set whether to overwrite an existing message.
      Parameters:
      flag - flag to set
    • setIncludeSessionIndex

      public void setIncludeSessionIndex​(boolean flag)
      Set whether to include a SessionIndex in the request.
      Parameters:
      flag - flag to set
    • setIdentifierGeneratorLookupStrategy

      public void setIdentifierGeneratorLookupStrategy​(@Nonnull Function<ProfileRequestContext,​IdentifierGenerationStrategy> strategy)
      Set the strategy used to locate the IdentifierGenerationStrategy to use.
      Parameters:
      strategy - lookup strategy
    • setIssuerLookupStrategy

      public void setIssuerLookupStrategy​(@Nullable Function<ProfileRequestContext,​String> strategy)
      Set the strategy used to locate the issuer value to use.
      Parameters:
      strategy - lookup strategy
    • setLogoutPropagationContextLookupStrategy

      public void setLogoutPropagationContextLookupStrategy​(@Nonnull Function<ProfileRequestContext,​LogoutPropagationContext> strategy)
      Set the logout propagation context lookup strategy.
      Parameters:
      strategy - lookup strategy
    • doPreExecute

      protected boolean doPreExecute​(@Nonnull ProfileRequestContext profileRequestContext)
      Overrides:
      doPreExecute in class AbstractProfileAction
    • doExecute

      protected void doExecute​(@Nonnull ProfileRequestContext profileRequestContext)
      Overrides:
      doExecute in class AbstractProfileAction