Class SetTokenDeliveryAttributesFromTokenToResponseContext

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

public class SetTokenDeliveryAttributesFromTokenToResponseContext extends AbstractOIDCResponseAction
Action that locates any token delivery claims from authorization code / access token. For located claims OIDCAuthenticationResponseTokenClaimsContext is created under OIDCAuthenticationResponseContext and the claims are placed there. Token and user info endpoints use the context for forming response.
  • Field Details

  • Constructor Details

    • SetTokenDeliveryAttributesFromTokenToResponseContext

      public SetTokenDeliveryAttributesFromTokenToResponseContext()
      Constructor.
  • Method Details

    • setDeliveryClaimsLookupStrategy

      public void setDeliveryClaimsLookupStrategy(@Nonnull Function<ProfileRequestContext,ClaimsSet> strategy)
      Set the strategy used to locate the delivery claims.
      Parameters:
      strategy - lookup strategy
    • setIDTokenDeliveryClaimsLookupStrategy

      public void setIDTokenDeliveryClaimsLookupStrategy(@Nullable Function<ProfileRequestContext,ClaimsSet> strategy)
      Set the strategy used to locate the id token delivery claims.
      Parameters:
      strategy - lookup strategy
    • setUserinfoDeliveryClaimsLookupStrategy

      public void setUserinfoDeliveryClaimsLookupStrategy(@Nullable Function<ProfileRequestContext,ClaimsSet> strategy)
      Set the strategy used to locate the user info delivery claims.
      Parameters:
      strategy - lookup strategy
    • doExecute

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