Summary: Inherited Constants | Fields | Ctors | Methods | Inherited Methods | [Expand All]
public final class

# IdToken

extends Object
implements SafeParcelable Parcelable

java.lang.Object
↳ | com.google.android.gms.auth.api.credentials.IdToken

## Class Overview

A token that is signed by an `Authenticator` to confirm that the account specified in the `idToken` is a valid account of `accountType`.

## Summary

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final Creator<IdToken> | CREATOR |

Public Constructors
| IdToken(String accountType, String idToken)

Public Methods
String | getAccountType() Returns `AccountManager` account type for the token.
String | getIdToken() Returns the ID token, formatted according to the rules defined by the account type.
void | writeToParcel(Parcel out, int flags)

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Fields

#### public static final Creator<IdToken> CREATOR

## Public Constructors

#### public IdToken (String accountType, String idToken)

## Public Methods

#### public String getAccountType ()

Returns `AccountManager` account type for the token.

#### public String getIdToken ()

Returns the ID token, formatted according to the rules defined by the account type.

#### public void writeToParcel (Parcel out, int flags)