Interface OAuthTokenResponse


public interface OAuthTokenResponse
Encapsulates the response from an OAuth Token Server.
See Also:
  • Method Details

    • from

      static OAuthTokenResponse from(JsonValue json)
      Derives OAuthTokenResponse from a parsed JSON value.
      Parameters:
      json - parsed JSON value
      Returns:
      OAuthTokenResponse
    • getTokenType

      String getTokenType()
      Gets the token type.
      Returns:
      token type; i.e. "bearer"
      See Also:
    • getAccessToken

      String getAccessToken()
      Gets the access token.
      Returns:
      access token
    • getIdToken

      String getIdToken()
      Gets the OIDC ID token.
      Returns:
      OIDC ID token
    • getRefreshToken

      String getRefreshToken()
      Gets the refresh token.
      Returns:
      refresh token
    • getExpiresIn

      int getExpiresIn()
      Gets the number of seconds until the token expires.
      Returns:
      number of seconds until the token expires
    • getError

      String getError()
      Gets the error; SHOULD be non-null if getAccessToken() is null.
      Returns:
      error code
    • getErrorDescription

      String getErrorDescription()
      Gets the OPTIONAL error description.
      Returns:
      error description
    • getErrorUri

      URI getErrorUri()
      Gets the OPTIONAL error URI.
      Returns:
      error URI