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
,jti
andiat
claims of the DPoP ProofJwt
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDecoder
(DPoPProofContext dPoPProofContext) Creates aJwtDecoder
using the supplied "contextual" type.void
setJwtValidatorFactory
(Function<DPoPProofContext, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) Sets the factory that provides anOAuth2TokenValidator
for the specifiedDPoPProofContext
and 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
,jti
andiat
claims of the DPoP ProofJwt
.
-
-
Constructor Details
-
DPoPProofJwtDecoderFactory
public DPoPProofJwtDecoderFactory()
-
-
Method Details
-
createDecoder
Description copied from interface:JwtDecoderFactory
Creates aJwtDecoder
using the supplied "contextual" type.- Specified by:
createDecoder
in 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 anOAuth2TokenValidator
for the specifiedDPoPProofContext
and is used by theJwtDecoder
. The defaultOAuth2TokenValidator<Jwt>
factory isDEFAULT_JWT_VALIDATOR_FACTORY
.- Parameters:
jwtValidatorFactory
- the factory that provides anOAuth2TokenValidator
for the specifiedDPoPProofContext
-