Class IdToken
java.lang.Object
com.google.auth.oauth2.AccessToken
com.google.auth.oauth2.IdToken
- All Implemented Interfaces:
Serializable
Represents a temporary IdToken and its JsonWebSignature object
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AccessToken
AccessToken.Builder -
Method Summary
Methods inherited from class AccessToken
getExpirationTime, getScopes, getTokenValue, newBuilder, toBuilder
-
Method Details
-
create
Creates an IdToken given the encoded Json Web Signature.- Parameters:
tokenValue- String representation of the ID token.- Returns:
- returns com.google.auth.oauth2.IdToken
- Throws:
IOException- if JWT token parsing fails
-
create
public static IdToken create(String tokenValue, com.google.api.client.json.JsonFactory jsonFactory) throws IOException Creates an IdToken given the encoded Json Web Signature and JSON Factory- Parameters:
tokenValue- String representation of the ID token.jsonFactory- JsonFactory to use for parsing the provided token.- Returns:
- returns com.google.auth.oauth2.IdToken
- Throws:
IOException- if JWT token parsing fails
-
hashCode
public int hashCode()- Overrides:
hashCodein classAccessToken
-
toString
- Overrides:
toStringin classAccessToken
-
equals
- Overrides:
equalsin classAccessToken
-