Class JwtClientAssertionDecoderFactory
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.JwtClientAssertionDecoderFactory
- All Implemented Interfaces:
JwtDecoderFactory<RegisteredClient>
public final class JwtClientAssertionDecoderFactory
extends Object
implements JwtDecoderFactory<RegisteredClient>
A
factory that provides a JwtDecoder for the
specified RegisteredClient and is used for authenticating a Jwt Bearer
Token during OAuth 2.0 Client Authentication.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<RegisteredClient,OAuth2TokenValidator<Jwt>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDecoder(RegisteredClient registeredClient) Creates aJwtDecoderusing the supplied "contextual" type.voidsetJwtValidatorFactory(Function<RegisteredClient, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) Sets the factory that provides anOAuth2TokenValidatorfor the specifiedRegisteredClientand is used by theJwtDecoder.
-
Field Details
-
DEFAULT_JWT_VALIDATOR_FACTORY
public static final Function<RegisteredClient,OAuth2TokenValidator<Jwt>> DEFAULT_JWT_VALIDATOR_FACTORY
-
-
Constructor Details
-
JwtClientAssertionDecoderFactory
public JwtClientAssertionDecoderFactory()
-
-
Method Details
-
createDecoder
Description copied from interface:JwtDecoderFactoryCreates aJwtDecoderusing the supplied "contextual" type.- Specified by:
createDecoderin interfaceJwtDecoderFactory<RegisteredClient>- Parameters:
registeredClient- the type that provides contextual information- Returns:
- a
JwtDecoder
-
setJwtValidatorFactory
public void setJwtValidatorFactory(Function<RegisteredClient, OAuth2TokenValidator<Jwt>> jwtValidatorFactory) Sets the factory that provides anOAuth2TokenValidatorfor the specifiedRegisteredClientand is used by theJwtDecoder. The defaultOAuth2TokenValidator<Jwt>factory isDEFAULT_JWT_VALIDATOR_FACTORY.- Parameters:
jwtValidatorFactory- the factory that provides anOAuth2TokenValidatorfor the specifiedRegisteredClient
-