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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<DPoPProofContext,OAuth2TokenValidator<Jwt>> The defaultOAuth2TokenValidator<Jwt>factory that validates thehtm,htu,jtiandiatclaims of the DPoP ProofJwt. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDecoder(DPoPProofContext dPoPProofContext) Creates aJwtDecoderusing the supplied "contextual" type.voidsetJwtValidatorFactory(Function<DPoPProofContext, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) Sets the factory that provides anOAuth2TokenValidatorfor the specifiedDPoPProofContextand is used by theJwtDecoder.
-
Field Details
-
DEFAULT_JWT_VALIDATOR_FACTORY
public static final Function<DPoPProofContext,OAuth2TokenValidator<Jwt>> DEFAULT_JWT_VALIDATOR_FACTORYThe defaultOAuth2TokenValidator<Jwt>factory that validates thehtm,htu,jtiandiatclaims of the DPoP ProofJwt.
-
-
Constructor Details
-
DPoPProofJwtDecoderFactory
public DPoPProofJwtDecoderFactory()
-
-
Method Details
-
createDecoder
Description copied from interface:JwtDecoderFactoryCreates aJwtDecoderusing the supplied "contextual" type.- Specified by:
createDecoderin interfaceJwtDecoderFactory<DPoPProofContext>- Parameters:
dPoPProofContext- the type that provides contextual information- Returns:
- a
JwtDecoder
-
setJwtValidatorFactory
public void setJwtValidatorFactory(Function<DPoPProofContext, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) Sets the factory that provides anOAuth2TokenValidatorfor the specifiedDPoPProofContextand is used by theJwtDecoder. The defaultOAuth2TokenValidator<Jwt>factory isDEFAULT_JWT_VALIDATOR_FACTORY.- Parameters:
jwtValidatorFactory- the factory that provides anOAuth2TokenValidatorfor the specifiedDPoPProofContext
-