Stay organized with collections
Save and categorize content based on your preferences.
public final class
FirebaseToken
extends Object
A decoded and verified Firebase token. Can be used to get the uid and other user attributes
available in the token. See verifyIdToken(String) and
verifySessionCookie(String) for details on how to obtain an instance of
this class.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-09 UTC."],[],[],null,["# FirebaseToken\n\npublic final class **FirebaseToken** extends Object \nA decoded and verified Firebase token. Can be used to get the uid and other user attributes\navailable in the token. See [verifyIdToken(String)](/docs/reference/admin/java/reference/com/google/firebase/auth/AbstractFirebaseAuth#verifyIdToken(java.lang.String)) and\n[verifySessionCookie(String)](/docs/reference/admin/java/reference/com/google/firebase/auth/AbstractFirebaseAuth#verifySessionCookie(java.lang.String)) for details on how to obtain an instance of\nthis class. \n\n### Public Method Summary\n\n|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Map\\\u003cString, Object\\\u003e | [getClaims](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getClaims())() Returns a map of all of the claims on this token. |\n| String | [getEmail](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getEmail())() Returns the e-mail address for this user, or `null` if it's unavailable. |\n| String | [getIssuer](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getIssuer())() Returns the Issuer for this token. |\n| String | [getName](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getName())() Returns the user's display name. |\n| String | [getPicture](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getPicture())() Returns the Uri string of the user's profile photo. |\n| String | [getTenantId](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getTenantId())() Returns the tenant ID for this token. |\n| String | [getUid](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getUid())() Returns the Uid for this token. |\n| boolean | [isEmailVerified](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#isEmailVerified())() Indicates if the email address returned by [getEmail()](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getEmail()) has been verified as good. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| Object | clone() |\n| boolean | equals(Object arg0) |\n| void | finalize() |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public Map\\\u003cString, Object\\\u003e\n**getClaims**\n()\n\nReturns a map of all of the claims on this token. \n\n#### public String\n**getEmail**\n()\n\nReturns the e-mail address for this user, or `null` if it's unavailable. \n\n#### public String\n**getIssuer**\n()\n\nReturns the Issuer for this token. \n\n#### public String\n**getName**\n()\n\nReturns the user's display name. \n\n#### public String\n**getPicture**\n()\n\nReturns the Uri string of the user's profile photo. \n\n#### public String\n**getTenantId**\n()\n\nReturns the tenant ID for this token. \n\n#### public String\n**getUid**\n()\n\nReturns the Uid for this token. \n\n#### public boolean\n**isEmailVerified**\n()\n\nIndicates if the email address returned by [getEmail()](/docs/reference/admin/java/reference/com/google/firebase/auth/FirebaseToken#getEmail()) has been verified as good."]]