Class JwtClientAssertionDecoderFactory
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.JwtClientAssertionDecoderFactory
- All Implemented Interfaces:
org.springframework.security.oauth2.jwt.JwtDecoderFactory<RegisteredClient>
public final class JwtClientAssertionDecoderFactory
extends Object
implements org.springframework.security.oauth2.jwt.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.- Since:
- 0.4.0
- See Also:
-
JwtDecoderFactoryRegisteredClientOAuth2TokenValidatorJwtClientAssertionAuthenticationProviderClientAuthenticationMethod.PRIVATE_KEY_JWTClientAuthenticationMethod.CLIENT_SECRET_JWT
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<RegisteredClient,org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> The defaultOAuth2TokenValidator<Jwt>factory that validates theiss,sub,aud,expandnbfclaims of theJwtfor the specifiedRegisteredClient. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.jwt.JwtDecodercreateDecoder(RegisteredClient registeredClient) voidsetJwtValidatorFactory(Function<RegisteredClient, org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.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,org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> DEFAULT_JWT_VALIDATOR_FACTORYThe defaultOAuth2TokenValidator<Jwt>factory that validates theiss,sub,aud,expandnbfclaims of theJwtfor the specifiedRegisteredClient.
-
-
Constructor Details
-
JwtClientAssertionDecoderFactory
public JwtClientAssertionDecoderFactory()
-
-
Method Details
-
createDecoder
public org.springframework.security.oauth2.jwt.JwtDecoder createDecoder(RegisteredClient registeredClient) - Specified by:
createDecoderin interfaceorg.springframework.security.oauth2.jwt.JwtDecoderFactory<RegisteredClient>
-
setJwtValidatorFactory
public void setJwtValidatorFactory(Function<RegisteredClient, org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.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
-