Class PublicClientAuthenticationProvider
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.PublicClientAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public final class PublicClientAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
An
AuthenticationProvider
implementation used for OAuth 2.0 Public Client
Authentication, which authenticates the code_verifier
parameter.- Since:
- 0.2.3
- See Also:
-
AuthenticationProvider
OAuth2ClientAuthenticationToken
RegisteredClientRepository
OAuth2AuthorizationService
-
Constructor Summary
ConstructorsConstructorDescriptionPublicClientAuthenticationProvider
(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService) Constructs aPublicClientAuthenticationProvider
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
PublicClientAuthenticationProvider
public PublicClientAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService) Constructs aPublicClientAuthenticationProvider
using the provided parameters.- Parameters:
registeredClientRepository
- the repository of registered clientsauthorizationService
- the authorization service
-
-
Method Details
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-