public final class

IdToken

extends Object
implements Parcelable 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 android.os.Parcelable
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
From interface android.os.Parcelable

Fields

public static final Creator<IdToken> CREATOR

Public Constructors

public IdToken (String accountType, String idToken)

Parameters
accountType String
idToken String

Public Methods

public String getAccountType ()

Returns AccountManager account type for the token.

Returns
String

public String getIdToken ()

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

Returns
String

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int