Class IdToken (1.6.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
NameDescription
tokenValueString

String representation of the ID token.

Returns
TypeDescription
IdToken

returns com.google.auth.oauth2.IdToken

Exceptions
TypeDescription
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
NameDescription
tokenValueString

String representation of the ID token.

jsonFactorycom.google.api.client.json.JsonFactory

JsonFactory to use for parsing the provided token.

Returns
TypeDescription
IdToken

returns com.google.auth.oauth2.IdToken

Exceptions
TypeDescription
IOException

if JWT token parsing fails

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides