Package com.google.auth.oauth2
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 com.google.auth.oauth2.AccessToken
AccessToken.Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic IdTokenCreates an IdToken given the encoded Json Web Signature.static IdTokenCreates an IdToken given the encoded Json Web Signature and JSON FactorybooleaninthashCode()toString()Returns a string representation of this access token, including the raw token value.Methods inherited from class com.google.auth.oauth2.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:
jsonFactory- JsonFactory to use for parsing the provided token.tokenValue- String representation of the ID token.- Returns:
- returns com.google.auth.oauth2.IdToken
- Throws:
IOException- if JWT token parsing fails
-
hashCode
public int hashCode()- Overrides:
hashCodein classAccessToken
-
toString
Description copied from class:AccessTokenReturns a string representation of this access token, including the raw token value.Security Warning: The output of this method includes the raw, unmasked access token value. Do not log this output in production environments as it may expose sensitive credentials.
- Overrides:
toStringin classAccessToken
-
equals
- Overrides:
equalsin classAccessToken
-