Class OAuth2AccessTokenResponse

java.lang.Object
com.codename1.backend.security.oauth2.client.OAuth2AccessTokenResponse

public final class OAuth2AccessTokenResponse extends Object
What a token endpoint answered a successful exchange with.
  • Constructor Details

    • OAuth2AccessTokenResponse

      public OAuth2AccessTokenResponse(Map fields)
      Parameters:
      fields - the fields of the answer, by name
  • Method Details

    • getAccessToken

      public String getAccessToken()
    • getTokenType

      public String getTokenType()
    • getExpiresIn

      public long getExpiresIn()
      The seconds the access token is good for, or 0 when the answer did not say.
    • getRefreshToken

      public String getRefreshToken()
      The refresh token, or null.
    • getScopes

      public Set<String> getScopes()
      The scopes granted, when the answer named them; empty otherwise, which means what was asked for.
    • getAdditionalParameters

      public Map<String,Object> getAdditionalParameters()
      Everything else the answer carried: id_token among it.
    • getIdToken

      public String getIdToken()
      The ID token as it was sent, or null.