Class AddAudienceRestrictionToAssertions

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction

public class AddAudienceRestrictionToAssertions extends AbstractConditionalProfileAction
Action adds an audience restriction condition to every assertion contained in a SAML 1/2 response, with the audiences obtained from a lookup function. If the containing Conditions is not present, it will be created.
Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • addingAudiencesToExistingRestriction

      private boolean addingAudiencesToExistingRestriction
      Whether, if an assertion already contains an audience restriction, this action will add its audiences to that restriction or create another one.
    • responseLookupStrategy

      @Nonnull private Function<ProfileRequestContext,SAMLObject> responseLookupStrategy
      Strategy used to locate the Response to operate on.
    • audienceRestrictionsLookupStrategy

      @NonnullAfterInit private Function<ProfileRequestContext,Collection<String>> audienceRestrictionsLookupStrategy
      Strategy used to obtain the audiences to add.
    • response

      @NonnullBeforeExec private SAMLObject response
      Response to modify.
    • audiences

      @NonnullBeforeExec private Collection<String> audiences
      Audiences to add.
  • Constructor Details

    • AddAudienceRestrictionToAssertions

      public AddAudienceRestrictionToAssertions()
      Constructor.
  • Method Details