SaveRestrictions
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
محدودیتهایی را برای شیئی که در حین ذخیره تأیید میشود، تعریف میکند. توجه: این یک ویژگی پیشرفته است، لطفاً برای پشتیبانی پیاده سازی با Google تماس بگیرید.
نمایندگی JSON |
---|
{
"restrictToEmailSha256": string
} |
فیلدها |
---|
restrictToEmailSha256 | string ذخیره شی ارجاع دهنده را فقط به آدرس ایمیل داده شده محدود کنید. این خروجی هگز از مجموع SHA256 آدرس ایمیل است که تماماً با حروف کوچک و بدون هیچ علامتی مانند "." یا "+"، به جز "@". به عنوان مثال، به عنوان مثال@example.com ، این مقدار 31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66 و برای Example@example.com ، این مقدار bb2326f33266766000 خواهد بود 7fb7f5d8a2d11e60ce15a6f43fe70ce632 اگر آدرس ایمیل کاربر وارد شده که سعی در ذخیره این مجوز دارد با مقدار تعریف شده در اینجا مطابقت نداشته باشد، کاربران مجاز به ذخیره این مجوز نخواهند بود. در عوض با خطایی از آنها خواسته می شود که با صادرکننده تماس بگیرند. این اطلاعات باید از کاربر با رضایت صریح از طریق یکپارچه سازی ورود با Google https://developers.google.com/identity/authentication جمع آوری شود. لطفاً قبل از استفاده از Save Restrictions با پشتیبانی تماس بگیرید. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eJSON representation defines restrictions to ensure data integrity during the save process, primarily focusing on email verification.\u003c/p\u003e\n"],["\u003cp\u003eIt uses \u003ccode\u003erestrictToEmailSha256\u003c/code\u003e field to limit saving privileges to a specific email address, enhancing security.\u003c/p\u003e\n"],["\u003cp\u003eThe email address is SHA256 hashed and compared with the provided value to authorize save operations.\u003c/p\u003e\n"],["\u003cp\u003eUsers with unmatched email addresses will be denied save permissions and advised to contact the issuer.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is advanced and requires contacting Google support for implementation and guidance on obtaining user consent via Sign in with Google.\u003c/p\u003e\n"]]],["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"],null,["# SaveRestrictions\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDefines restrictions on the object that will be verified during save. Note: this is an advanced feature, please contact Google for implementation support.\n\n| JSON representation |\n|---------------------------------------------|\n| ``` { \"restrictToEmailSha256\": string } ``` |\n\n| Fields ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `restrictToEmailSha256` | `string` Restrict the save of the referencing object to the given email address only. This is the hex output of SHA256 sum of the email address, all lowercase and without any notations like \".\" or \"+\", except \"@\". For example, for [example@example.com](mailto:example@example.com), this value will be 31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66 and for [Example@example.com](mailto:Example@example.com), this value will be bc34f262c93ad7122763684ccea6f07fb7f5d8a2d11e60ce15a6f43fe70ce632 If email address of the logged-in user who tries to save this pass does not match with the defined value here, users won't be allowed to save this pass. They will instead be prompted with an error to contact the issuer. This information should be gathered from the user with an explicit consent via Sign in with Google integration \u003chttps://developers.google.com/identity/authentication\u003e. Please contact with support before using Save Restrictions. |"]]