Class OAuth2DeviceCodeAuthenticationProvider
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2DeviceCodeAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public final class OAuth2DeviceCodeAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
An
AuthenticationProvider
implementation for the Device Access Token Request
used in the OAuth 2.0 Device Authorization Grant.- Since:
- 1.1
- See Also:
-
OAuth2DeviceCodeAuthenticationToken
OAuth2AccessTokenAuthenticationToken
OAuth2DeviceAuthorizationRequestAuthenticationProvider
OAuth2DeviceVerificationAuthenticationProvider
OAuth2DeviceAuthorizationConsentAuthenticationProvider
OAuth2AuthorizationService
OAuth2TokenGenerator
- OAuth 2.0 Device Authorization Grant
- Section 3.4 Device Access Token Request
- Section 3.5 Device Access Token Response
-
Constructor Summary
ConstructorDescriptionOAuth2DeviceCodeAuthenticationProvider
(OAuth2AuthorizationService authorizationService, OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) Constructs anOAuth2DeviceCodeAuthenticationProvider
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
Constructor Details
-
OAuth2DeviceCodeAuthenticationProvider
public OAuth2DeviceCodeAuthenticationProvider(OAuth2AuthorizationService authorizationService, OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator) Constructs anOAuth2DeviceCodeAuthenticationProvider
using the provided parameters.- Parameters:
authorizationService
- the authorization servicetokenGenerator
- the token generator
-
-
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
-