public class IdToken extends AccessToken implements SerializableRepresents a temporary IdToken and its JsonWebSignature object
Implements
SerializableStatic Methods
create(String tokenValue)
public static IdToken create(String tokenValue)Creates an IdToken given the encoded Json Web Signature.
| Parameter | |
|---|---|
| Name | Description | 
tokenValue | 
        StringString 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)
public static IdToken create(String tokenValue, JsonFactory jsonFactory)Creates an IdToken given the encoded Json Web Signature and JSON Factory
| Parameters | |
|---|---|
| Name | Description | 
tokenValue | 
        StringString 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)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description | 
obj | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description | 
int | 
        |
toString()
public String toString()| Returns | |
|---|---|
| Type | Description | 
String | 
        |