Class OAuth2AuthorizationService.StoredToken
java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.OAuth2AuthorizationService.StoredToken
- Enclosing interface:
OAuth2AuthorizationService
One stored secret, as
OAuth2AuthorizationService.findToken(String, String) reports it.-
Constructor Summary
ConstructorsConstructorDescriptionStoredToken(String authorizationId, boolean used, long expiresAt, long polledAt) -
Method Summary
Modifier and TypeMethodDescriptionThe grant it was issued under.longEpoch milliseconds.longWhen it was used up, orOAuth2AuthorizationService.touchToken(String, String, long)was last called for it; 0 when neither has happened.booleanisUsed()Whether it has been used up.
-
Constructor Details
-
StoredToken
-
-
Method Details
-
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, orOAuth2AuthorizationService.touchToken(String, String, long)was last called for it; 0 when neither has happened.
-