Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class OAuth2AccessTokenResponse

  1. Object
  2. OAuth2AccessTokenResponse
What a token endpoint answered a successful exchange with.

Constructors

public OAuth2AccessTokenResponse(Map fields)

Methods

public String getAccessToken()
public String getTokenType()
public long getExpiresIn()The seconds the access token is good for, or 0 when the answer did not say.
public String getRefreshToken()The refresh token, or null.
public Set<String> getScopes()The scopes granted, when the answer named them; empty otherwise, which means what was asked for.
public Map<String, Object> getAdditionalParameters()Everything else the answer carried: id_token among it.
public String getIdToken()The ID token as it was sent, or null.

Inherited methods

Constructor details

OAuth2AccessTokenResponse

public OAuth2AccessTokenResponse(Map fields)

Parameters

fields Map
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.