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:
-
JwtDecoderFactory
RegisteredClient
OAuth2TokenValidator
JwtClientAssertionAuthenticationProvider
ClientAuthenticationMethod.PRIVATE_KEY_JWT
ClientAuthenticationMethod.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
,exp
andnbf
claims of theJwt
for the specifiedRegisteredClient
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.jwt.JwtDecoder
createDecoder
(RegisteredClient registeredClient) void
setJwtValidatorFactory
(Function<RegisteredClient, org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> jwtValidatorFactory) Sets the factory that provides anOAuth2TokenValidator
for the specifiedRegisteredClient
and 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
,exp
andnbf
claims of theJwt
for the specifiedRegisteredClient
.
-
-
Constructor Details
-
JwtClientAssertionDecoderFactory
public JwtClientAssertionDecoderFactory()
-
-
Method Details
-
createDecoder
public org.springframework.security.oauth2.jwt.JwtDecoder createDecoder(RegisteredClient registeredClient) - Specified by:
createDecoder
in 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 anOAuth2TokenValidator
for the specifiedRegisteredClient
and is used by theJwtDecoder
. The defaultOAuth2TokenValidator<Jwt>
factory isDEFAULT_JWT_VALIDATOR_FACTORY
.- Parameters:
jwtValidatorFactory
- the factory that provides anOAuth2TokenValidator
for the specifiedRegisteredClient
-