Class OAuth2DeviceVerificationAuthenticationProvider
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2DeviceVerificationAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public final class OAuth2DeviceVerificationAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
An
AuthenticationProvider
implementation for the Device Verification Request
(submission of the user code) used in the OAuth 2.0 Device Authorization Grant.- Since:
- 1.1
- See Also:
-
OAuth2DeviceVerificationAuthenticationToken
OAuth2DeviceAuthorizationRequestAuthenticationProvider
OAuth2DeviceAuthorizationConsentAuthenticationProvider
OAuth2DeviceCodeAuthenticationProvider
RegisteredClientRepository
OAuth2AuthorizationService
OAuth2AuthorizationConsentService
- OAuth 2.0 Device Authorization Grant
- Section 3.3 User Interaction
-
Constructor Summary
ConstructorDescriptionOAuth2DeviceVerificationAuthenticationProvider
(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService, OAuth2AuthorizationConsentService authorizationConsentService) Constructs anOAuth2DeviceVerificationAuthenticationProvider
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
OAuth2DeviceVerificationAuthenticationProvider
public OAuth2DeviceVerificationAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService, OAuth2AuthorizationConsentService authorizationConsentService) Constructs anOAuth2DeviceVerificationAuthenticationProvider
using the provided parameters.- Parameters:
registeredClientRepository
- the repository of registered clientsauthorizationService
- the authorization serviceauthorizationConsentService
- the authorization consent 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
-