public class OAuth2AuthorizationCodeAuthenticationProvider extends Object
AuthenticationProvider
implementation for the OAuth 2.0 Authorization Code Grant.Constructor and Description |
---|
OAuth2AuthorizationCodeAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService, JwtEncoder jwtEncoder) Constructs an OAuth2AuthorizationCodeAuthenticationProvider using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
Authentication | authenticate(Authentication authentication) |
boolean | supports(Class<?> authentication) |
public OAuth2AuthorizationCodeAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService, JwtEncoder jwtEncoder)
OAuth2AuthorizationCodeAuthenticationProvider
using the provided parameters.registeredClientRepository
- the repository of registered clientsauthorizationService
- the authorization servicejwtEncoder
- the jwt encoderpublic Authentication authenticate(Authentication authentication) throws AuthenticationException
AuthenticationException
public boolean supports(Class<?> authentication)