Class OAuth2DeviceCode
java.lang.Object
org.springframework.security.oauth2.core.AbstractOAuth2Token
org.springframework.security.oauth2.core.OAuth2DeviceCode
- All Implemented Interfaces:
Serializable
,OAuth2Token
An implementation of an
AbstractOAuth2Token
representing a device code as part
of the OAuth 2.0 Device Authorization Grant.- Since:
- 6.1
- See Also:
-
Constructor Summary
ConstructorDescriptionOAuth2DeviceCode
(String tokenValue, Instant issuedAt, Instant expiresAt) Constructs anOAuth2DeviceCode
using the provided parameters. -
Method Summary
Methods inherited from class org.springframework.security.oauth2.core.AbstractOAuth2Token
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
-
Constructor Details
-
OAuth2DeviceCode
Constructs anOAuth2DeviceCode
using the provided parameters.- Parameters:
tokenValue
- the token valueissuedAt
- the time at which the token was issuedexpiresAt
- the time at which the token expires
-