Package org.forgerock.android.auth
Class AccessToken
-
- All Implemented Interfaces:
-
java.io.Serializable
public class AccessToken extends Token implements Serializable
Models an OAuth2 access token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAccessToken.ScopeAuthorization Scope
-
Constructor Summary
Constructors Constructor Description AccessToken(String value, long expiresIn, Date expiration, String refreshToken, String idToken, String tokenType, AccessToken.Scope scope, SSOToken sessionToken)
-
Method Summary
-
-
Method Detail
-
isExpired
boolean isExpired()
Convenience method for checking expiration
- Returns:
true if the expiration is before the current time
-
isExpired
boolean isExpired(long threshold)
Convenience method for checking expiration
- Parameters:
threshold- Threshold in Seconds- Returns:
true if the expiration is before the current time
-
fromJson
static AccessToken fromJson(String str)
-
-
-
-