Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface AccessTokenGrant
Known subtypesClientCredentialsGrant, JwtBearerGrant
One way of obtaining an access token: a grant against a token endpoint.
Every call is a new exchange. Applications do not call a grant directly;
they wrap it in an AccessTokenProvider, which caches the token, refreshes it
before it expires and shares one refresh among concurrent callers.
Methods
public abstract AccessToken fetch() | Exchanges the credentials for a new token. |
Method details
fetch
public abstract AccessToken fetch()Exchanges the credentials for a new token.
Throws
TokenAcquisitionException- when no token was issued