Class IdToken (1.29.1-SNAPSHOT)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass IdTokenextendsAccessTokenimplementsSerializableRepresents a temporary IdToken and its JsonWebSignature object
Implements
SerializableInherited Members
Static Methods
create(String tokenValue)
publicstaticIdTokencreate(StringtokenValue)Creates an IdToken given the encoded Json Web Signature.
| Parameter | |
|---|---|
| Name | Description |
tokenValue |
String String representation of the ID token. |
| Returns | |
|---|---|
| Type | Description |
IdToken |
returns com.google.auth.oauth2.IdToken |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
if JWT token parsing fails |
create(String tokenValue, JsonFactory jsonFactory)
publicstaticIdTokencreate(StringtokenValue,JsonFactoryjsonFactory)Creates an IdToken given the encoded Json Web Signature and JSON Factory
| Parameters | |
|---|---|
| Name | Description |
tokenValue |
String String representation of the ID token. |
jsonFactory |
com.google.api.client.json.JsonFactoryJsonFactory to use for parsing the provided token. |
| Returns | |
|---|---|
| Type | Description |
IdToken |
returns com.google.auth.oauth2.IdToken |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
if JWT token parsing fails |
Methods
equals(Object obj)
publicbooleanequals(Objectobj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
hashCode()
publicinthashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
publicStringtoString()| Returns | |
|---|---|
| Type | Description |
String |
|