public class OAuth2ClientCredentialsAuthenticationProvider extends Object
AuthenticationProvider
implementation for the OAuth 2.0 Client Credentials Grant.Constructor and Description |
---|
OAuth2ClientCredentialsAuthenticationProvider(OAuth2AuthorizationService authorizationService, JwtEncoder jwtEncoder) Constructs an OAuth2ClientCredentialsAuthenticationProvider using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
Authentication | authenticate(Authentication authentication) |
boolean | supports(Class<?> authentication) |
public OAuth2ClientCredentialsAuthenticationProvider(OAuth2AuthorizationService authorizationService, JwtEncoder jwtEncoder)
OAuth2ClientCredentialsAuthenticationProvider
using the provided parameters.authorizationService
- the authorization servicejwtEncoder
- the jwt encoderpublic Authentication authenticate(Authentication authentication) throws AuthenticationException
AuthenticationException
public boolean supports(Class<?> authentication)