Class OAuth2TokenResponse

java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.OAuth2TokenResponse
All Implemented Interfaces:
RESTMessage, RESTResponse

public class OAuth2TokenResponse extends BaseResponse
Represents the response of an OAuth2 token request.
  • Constructor Details

    • OAuth2TokenResponse

      public OAuth2TokenResponse(String accessToken, String issuedTokenType, String tokenType, Integer expiresIn, String scope, String refreshToken)
      Creates a new OAuth2TokenResponse.
      Parameters:
      accessToken - The access token.
      issuedTokenType - The issued token type.
      tokenType - The token type.
      expiresIn - The expiration time of the token in seconds.
      scope - The scope of the token.
      refreshToken - The refresh token.
    • OAuth2TokenResponse

      public OAuth2TokenResponse()
      Creates a new OAuth2TokenResponse. This is the constructor that is used by Jackson deserializer
  • Method Details