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:
  • 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_FACTORY
      The default OAuth2TokenValidator<Jwt> factory that validates the iss, sub, aud, exp and nbf claims of the Jwt for the specified RegisteredClient.
  • Constructor Details

    • JwtClientAssertionDecoderFactory

      public JwtClientAssertionDecoderFactory()
  • Method Details

    • createDecoder

      public org.springframework.security.oauth2.jwt.JwtDecoder createDecoder(RegisteredClient registeredClient)
      Specified by:
      createDecoder in interface org.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 an OAuth2TokenValidator for the specified RegisteredClient and is used by the JwtDecoder. The default OAuth2TokenValidator<Jwt> factory is DEFAULT_JWT_VALIDATOR_FACTORY.
      Parameters:
      jwtValidatorFactory - the factory that provides an OAuth2TokenValidator for the specified RegisteredClient