Class InitializeOutboundMessageContext

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

public class InitializeOutboundMessageContext extends AbstractProfileAction
Action that adds an outbound MessageContext and related SAML contexts to the ProfileRequestContext based on the identity of a relying party accessed via a lookup strategy, by default an immediate child of the profile request context.

This is a copy of an IdP class that adds optionality to the existence of the peer via a flag, for ECP use.

A SAMLSelfEntityContext is created based on the identity of the SP/Agent, as derived by a lookup strategy. A SAMLPeerEntityContext and SAMLMetadataContext are created based on the SAMLPeerEntityContext that underlies the RelyingPartyContext.

Event:
EventIds.PROCEED_EVENT_ID, IdPEventIds.INVALID_RELYING_PARTY_CTX
  • Field Details

    • log

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

      @Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
      Relying party context lookup strategy.
    • selfIdentityLookupStrategy

      @Nonnull private Function<ProfileRequestContext,String> selfIdentityLookupStrategy
      Strategy used to obtain the self identity value.
    • requirePeerIdentity

      private boolean requirePeerIdentity
      Whether a peer identity is required or not.
    • peerEntityCtx

      @Nullable private SAMLPeerEntityContext peerEntityCtx
      The SAMLPeerEntityContext to base the outbound context on.
  • Constructor Details

    • InitializeOutboundMessageContext

      public InitializeOutboundMessageContext()
      Constructor.
  • Method Details