Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public static final class OAuth2AuthorizationService.StoredToken
- Object
- OAuth2AuthorizationService.StoredToken
One stored secret, as
OAuth2AuthorizationService.findToken reports it.Constructors
public StoredToken(String authorizationId, boolean used, long expiresAt, long polledAt) |
Methods
public String getAuthorizationId() | The grant it was issued under. |
public boolean isUsed() | Whether it has been used up. |
public long getExpiresAt() | Epoch milliseconds. |
public long getPolledAt() | When it was used up, or OAuth2AuthorizationService.touchToken was last called for it; 0 when neither has happened. |
Inherited methods
Constructor details
StoredToken
public StoredToken(String authorizationId, boolean used, long expiresAt, long polledAt)Method details
getAuthorizationId
public String getAuthorizationId()The grant it was issued under.
isUsed
public boolean isUsed()Whether it has been used up.
getExpiresAt
public long getExpiresAt()Epoch milliseconds.
getPolledAt
public long getPolledAt()When it was used up, or
OAuth2AuthorizationService.touchToken
was last called for it; 0 when neither has happened.