SaveRestrictions
定義物件在儲存期間會驗證的限制。注意:這是進階功能,如需實作支援服務,請與 Google 聯絡。
JSON 表示法 |
{
"restrictToEmailSha256": string
} |
欄位 |
restrictToEmailSha256 |
string
將參照物件的儲存作業限制為僅限於指定的電子郵件地址。這是電子郵件地址 SHA256 總和的十六進制輸出內容,所有字元皆為小寫,且除了「@」之外,不含任何「.」或「+」等符號。 舉例來說,如果電子郵件地址為 example@example.com,這個值會是 31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66,如果電子郵件地址為 Example@example.com,這個值會是 bc34f262c93ad7122763684ccea6f07fb7f5d8a2d11e60ce15a6f43fe70ce632 如果嘗試儲存此票證的登入使用者電子郵件地址與此處定義的值不符,使用者將無法儲存此票證。系統會顯示錯誤訊息,請他們與發卡機構聯絡。 您應透過「使用 Google 帳戶登入」整合功能,向使用者明確取得同意聲明,才能收集這類資訊。https://developers.google.com/identity/authentication請先與支援團隊聯絡,再使用「儲存限制」功能。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-13 (世界標準時間)。
[null,null,["上次更新時間:2024-11-13 (世界標準時間)。"],[[["JSON representation defines restrictions to ensure data integrity during the save process, primarily focusing on email verification."],["It uses `restrictToEmailSha256` field to limit saving privileges to a specific email address, enhancing security."],["The email address is SHA256 hashed and compared with the provided value to authorize save operations."],["Users with unmatched email addresses will be denied save permissions and advised to contact the issuer."],["This feature is advanced and requires contacting Google support for implementation and guidance on obtaining user consent via Sign in with Google."]]],["The core content describes a feature called \"Save Restrictions\" that limits object saving to a specific email address. The `restrictToEmailSha256` field, represented as a string, stores the SHA256 hash of the email. Only users whose email's SHA256 hash matches this value can save the object. Mismatched users are prompted to contact the issuer. The hash is lowercase, excluding \".\" or \"+\" but including \"@\". The information needs an explicit user consent. This feature requires contacting Google for support before implementation.\n"]]