Class OAuth2DeviceCode

java.lang.Object
org.springframework.security.oauth2.core.AbstractOAuth2Token
org.springframework.security.oauth2.core.OAuth2DeviceCode
All Implemented Interfaces:
Serializable, OAuth2Token

public class OAuth2DeviceCode extends AbstractOAuth2Token
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 Details

    • OAuth2DeviceCode

      public OAuth2DeviceCode(String tokenValue, Instant issuedAt, Instant expiresAt)
      Constructs an OAuth2DeviceCode using the provided parameters.
      Parameters:
      tokenValue - the token value
      issuedAt - the time at which the token was issued
      expiresAt - the time at which the token expires