Class DPoPProofJwtDecoderFactory

java.lang.Object
org.springframework.security.oauth2.jwt.DPoPProofJwtDecoderFactory
All Implemented Interfaces:
JwtDecoderFactory<DPoPProofContext>

public final class DPoPProofJwtDecoderFactory extends Object implements JwtDecoderFactory<DPoPProofContext>
A factory that provides a JwtDecoder for the specified DPoPProofContext and is used for authenticating a DPoP Proof Jwt.
Since:
6.5
See Also:
  • Field Details

    • DEFAULT_JWT_VALIDATOR_FACTORY

      public static final Function<DPoPProofContext, org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>> DEFAULT_JWT_VALIDATOR_FACTORY
      The default OAuth2TokenValidator<Jwt> factory that validates the htm, htu, iat, jkt, ath and jti claims of the DPoP Proof Jwt.
  • Constructor Details

    • DPoPProofJwtDecoderFactory

      public DPoPProofJwtDecoderFactory()
  • Method Details

    • createDecoder

      public JwtDecoder createDecoder(DPoPProofContext dPoPProofContext)
      Description copied from interface: JwtDecoderFactory
      Creates a JwtDecoder using the supplied "contextual" type.
      Specified by:
      createDecoder in interface JwtDecoderFactory<DPoPProofContext>
      Parameters:
      dPoPProofContext - the type that provides contextual information
      Returns:
      a JwtDecoder
    • setJwtValidatorFactory

      public void setJwtValidatorFactory(Function<DPoPProofContext, org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>> jwtValidatorFactory)
      Sets the factory that provides an OAuth2TokenValidator for the specified DPoPProofContext and is used by the JwtDecoder. The default OAuth2TokenValidator<Jwt> factory is DEFAULT_JWT_VALIDATOR_FACTORY.
      Parameters:
      jwtValidatorFactory - the factory that provides an OAuth2TokenValidator for the specified DPoPProofContext
    • createDefaultJwtValidatorFactory

      public static Function<DPoPProofContext, org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>> createDefaultJwtValidatorFactory(List<org.springframework.security.oauth2.core.OAuth2TokenValidator<Jwt>> validators)
      Creates a factory that provides an OAuth2TokenValidator for the specified DPoPProofContext and is used by the JwtDecoder. The returned factory provides a validator that validates the htm, htu, iat, jkt, ath and jti claims, along with any custom validators provided.
      Parameters:
      validators - the custom validators to add
      Returns:
      a factory that provides an OAuth2TokenValidator for the specified DPoPProofContext
      Since:
      6.5.12