Class AccessToken
java.lang.Object
com.google.auth.oauth2.AccessToken
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IdToken
Represents a temporary OAuth2 access token and its expiration information.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAccessToken(AccessToken.Builder builder) AccessToken(String tokenValue, Date expirationTime) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTime when access token will expire.(package private) LongScopes from the access token response.String representation of the access token.inthashCode()static AccessToken.BuildertoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
tokenValue
-
expirationTimeMillis
-
scopes
-
-
Constructor Details
-
AccessToken
-
AccessToken
-
-
Method Details
-
newBuilder
-
toBuilder
-
getScopes
-
getTokenValue
String representation of the access token.- Returns:
- The raw access token string value.
-
getExpirationTime
-
getExpirationTimeMillis
Long getExpirationTimeMillis() -
hashCode
-
toString
-
equals
-