public class OAuth2ClientAuthenticationProvider extends Object
AuthenticationProvider
implementation that validates OAuth2ClientAuthenticationToken
's.AuthenticationProvider
, OAuth2ClientAuthenticationToken
, RegisteredClientRepository
Constructor and Description |
---|
OAuth2ClientAuthenticationProvider(RegisteredClientRepository registeredClientRepository) Constructs an OAuth2ClientAuthenticationProvider using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
Authentication | authenticate(Authentication authentication) |
boolean | supports(Class<?> authentication) |
public OAuth2ClientAuthenticationProvider(RegisteredClientRepository registeredClientRepository)
OAuth2ClientAuthenticationProvider
using the provided parameters.registeredClientRepository
- the repository of registered clientspublic Authentication authenticate(Authentication authentication) throws AuthenticationException
AuthenticationException
public boolean supports(Class<?> authentication)