All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, org.springframework.beans.factory.Aware, org.springframework.context.MessageSource, org.springframework.context.MessageSourceAware, org.springframework.webflow.execution.Action

public class ValidateDPoPProof extends AbstractOIDCRequestAction<Request>
Action validates DPoP Proof JWT if already stored to the context. If validation succeeds, the JWK thumbprint is stored in the context.
  • Field Details

  • Constructor Details

    • ValidateDPoPProof

      public ValidateDPoPProof()
      Constructor.
  • Method Details

    • setClaimsValidatorLookupStrategy

      public void setClaimsValidatorLookupStrategy(@Nonnull Function<ProfileRequestContext,ClaimsValidator> strategy)
      Set the lookup strategy for the claims validator used for validating the DPoP proof.
      Parameters:
      strategy - What to set
    • setDpopProofNonceGeneratorLookupStrategy

      public void setDpopProofNonceGeneratorLookupStrategy(@Nonnull Function<ProfileRequestContext,Function<ProfileRequestContext,String>> strategy)
      Set the lookup strategy for the nonce generator to create nonces to be used in DPoP proof.
      Parameters:
      strategy - What to set
    • doPreExecute

      protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
      Overrides:
      doPreExecute in class AbstractOIDCRequestAction<Request>
    • doExecute

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

      protected void handleNonceValidationFailure(@Nonnull ProfileRequestContext profileRequestContext)
      Attach a new nonce to the HTTP servlet response or builds the corresponding event ID to the given PRC if the nonce cannot be generated or attached.
      Parameters:
      profileRequestContext - the context to be populated with error event ID