Class PrepareOIDCInboundMessageContext

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

public class PrepareOIDCInboundMessageContext extends AbstractProfileAction
Action that adds an inbound MessageContext and a OIDCPeerEntityContext to the ProfileRequestContext based on the identity of a relying party, by default from the AuthenticationContext.getAuthenticatingAuthority().

If addToExistingInboundMessageContextPredicate is true, the OIDCPeerEntityContext is added as a subcontext to any existing inbound message context.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX
Postcondition:
Add an OIDCPeerEntityContext to the inbound message context.
  • Field Details

    • log

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

      @NonnullAfterInit private Function<ProfileRequestContext,String> identifierLookupStrategy
      Strategy to lookup the identifier of the OP/RP to base the inbound context on.
    • identifier

      @Nullable private String identifier
      The identifier of the OP/RP to base the inbound context on.
    • addToExistingInboundMessageContextPredicate

      @Nonnull private Predicate<ProfileRequestContext> addToExistingInboundMessageContextPredicate
      Should the peer entity context be added to an existing inbound message context or not. If not, a new inbound message context is created before the peer entity context is added. Defaults to false.
  • Constructor Details

    • PrepareOIDCInboundMessageContext

      public PrepareOIDCInboundMessageContext()
      Constructor.
  • Method Details