Class OAuth2DeviceVerificationAuthenticationContext
java.lang.Object
org.springframework.security.oauth2.server.authorization.authentication.OAuth2DeviceVerificationAuthenticationContext
- All Implemented Interfaces:
OAuth2AuthenticationContext, Context
public final class OAuth2DeviceVerificationAuthenticationContext
extends Object
implements OAuth2AuthenticationContext
An
OAuth2AuthenticationContext that holds an
OAuth2DeviceVerificationAuthenticationToken and additional information and is
used when determining if authorization consent is required.- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forOAuth2DeviceVerificationAuthenticationContext.Nested classes/interfaces inherited from interface OAuth2AuthenticationContext
OAuth2AuthenticationContext.AbstractBuilder<T,B> -
Method Summary
Modifier and TypeMethodDescription<V> @Nullable VReturns the value of the attribute associated to the key.Returns theauthorization.@Nullable OAuth2AuthorizationConsentReturns theauthorization consent.Returns theregistered client.Returns the requested scopes.booleanReturnstrueif an attribute associated to the key exists,falseotherwise.with(OAuth2DeviceVerificationAuthenticationToken authentication) Constructs a newOAuth2DeviceVerificationAuthenticationContext.Builderwith the providedOAuth2DeviceVerificationAuthenticationToken.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OAuth2AuthenticationContext
getAuthentication
-
Method Details
-
get
Description copied from interface:ContextReturns the value of the attribute associated to the key. -
hasKey
Description copied from interface:ContextReturnstrueif an attribute associated to the key exists,falseotherwise. -
getRegisteredClient
Returns theregistered client.- Returns:
- the
RegisteredClient
-
getAuthorization
Returns theauthorization.- Returns:
- the
OAuth2Authorization
-
getAuthorizationConsent
Returns theauthorization consent.- Returns:
- the
OAuth2AuthorizationConsent, ornullif not available
-
getRequestedScopes
-
with
public static OAuth2DeviceVerificationAuthenticationContext.Builder with(OAuth2DeviceVerificationAuthenticationToken authentication) Constructs a newOAuth2DeviceVerificationAuthenticationContext.Builderwith the providedOAuth2DeviceVerificationAuthenticationToken.- Parameters:
authentication- theOAuth2DeviceVerificationAuthenticationToken- Returns:
- the
OAuth2DeviceVerificationAuthenticationContext.Builder
-