Class IdToken (1.27.0)

public class IdToken extends AccessToken implements Serializable

Represents a temporary IdToken and its JsonWebSignature object

Inheritance

Object > AccessToken > IdToken

Implements

Serializable

Static Methods

create(String tokenValue)

public static IdToken create(String tokenValue)

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)

public static IdToken create(String tokenValue, JsonFactory jsonFactory)

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.JsonFactory

JsonFactory 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
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides