GoogleOAuthAccessToken
השיעור הזה הוצא משימוש.
השתמש ב- GoogleCredentials ובשיעורים נלווים.
מייצג אסימון גישה של OAuth, שניתן להשתמש בו לגישה ל- Firebase ולממשקי API מוסמכים אחרים של Google. מקפל את מחרוזת האסימון וגם את זמן התפוגה שלו.
סיכום שיטות ציבוריות
חוּט | |
ארוך | getExpiryTime () מחזירה את זמן התפוגה באלפיות השנייה מאז חותמת הזמן של התקופה. |
סיכום השיטה בירושה
משיעור java.lang.Object לְהִתְנַגֵד | שיבוט () |
בוליאני | שווה (אובייקט arg0) |
בָּטֵל | סיים () |
כיתה סופית <?> | getClass () |
int | hashCode () |
חלל סופי | להודיע () |
חלל סופי | notifyAll () |
חוּט | toString () |
חלל סופי | המתן (ארוך arg0, int arg1) |
חלל סופי | חכה (ארוך arg0) |
חלל סופי | חכה () |
בנאים ציבוריים
GoogleOAuthAccessToken ציבורי ( AccessToken מחרוזת, זמן תפוגה ארוך)
צור מופע חדש של GoogleOAuthAccessToken
פרמטרים
אסימון גישה | מחרוזת אסימון גישה JWT |
---|
expiryTime | הזמן בו יפוג האסימון (אלפיות שנייה מאז תקופה) |
---|
זורק
IllegalArgumentException | אם האסימון הוא ריק או ריק |
---|
שיטות ציבוריות
מחרוזת ציבורית getAccessToken ()
מחזיר את אסימון הגישה של JWT.
ציבורי ארוך getExpiryTime ()
מחזיר את זמן התפוגה באלפיות השנייה מאז חותמת הזמן של העידן.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-12-03 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"בעיה בדוגמאות/בקוד"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]