{"id": string,"issuerCn": string,"isDefault": boolean,"expiration": string,"encryptedKeyPassword": string,// Union field key can be only one of the following:"pem": string,"pkcs12": string// End of list of possible types for union field key.}
فیلدها
id
string
شناسه تغییرناپذیر SmimeInfo.
issuerCn
string
نام مشترک صادرکننده گواهی S/MIME.
isDefault
boolean
آیا این SmimeInfo پیشفرض برای آدرس ارسال به عنوان این کاربر است یا خیر.
زمانی که گواهی منقضی می شود (در میلی ثانیه از زمان).
encryptedKeyPassword
string
رمز عبور کلید رمزگذاری شده، زمانی که کلید رمزگذاری شده است.
key فیلد اتحادیه S/MIME "کلید" که ممکن است از ترکیب های مختلفی از کلید عمومی، کلید خصوصی و زنجیره گواهی بسته به فرمت مورد انتظار و مورد استفاده تشکیل شده باشد. key فقط می تواند یکی از موارد زیر باشد:
pem
string
رشته گواهی پیوسته با فرمت PEM X509 (رمزگذاری استاندارد base64). قالب مورد استفاده برای بازگرداندن کلید، که شامل کلید عمومی و همچنین زنجیره گواهی (نه کلید خصوصی) است.
قالب PKCS#12 حاوی یک جفت کلید خصوصی/عمومی و زنجیره گواهی است. این قالب فقط برای ایجاد یک SmimeInfo جدید از مشتری پذیرفته می شود و هرگز بازگردانده نمی شود، زیرا کلید خصوصی برای صادرات در نظر گرفته نشده است. PKCS#12 ممکن است رمزگذاری شود، در این صورت رمز عبور رمزگذاری شده باید به طور مناسب تنظیم شود.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# REST Resource: users.settings.sendAs.smimeInfo\n\n- [Resource: SmimeInfo](#SmimeInfo)\n - [JSON representation](#SmimeInfo.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SmimeInfo\n-------------------\n\nAn S/MIME email config.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"issuerCn\": string, \"isDefault\": boolean, \"expiration\": string, \"encryptedKeyPassword\": string, // Union field `key` can be only one of the following: \"pem\": string, \"pkcs12\": string // End of list of possible types for union field `key`. } ``` |\n\n| Fields ||\n|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The immutable ID for the SmimeInfo. |\n| `issuerCn` | `string` The S/MIME certificate issuer's common name. |\n| `isDefault` | `boolean` Whether this SmimeInfo is the default one for this user's send-as address. |\n| `expiration` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` When the certificate expires (in milliseconds since epoch). |\n| `encryptedKeyPassword` | `string` Encrypted key password, when key is encrypted. |\n| Union field `key`. The S/MIME \"key\", which may consist of various combinations of the public key, private key, and certificate chain depending on the format expected and used. `key` can be only one of the following: ||\n| `pem` | `string` PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key). |\n| `pkcs12` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately. A base64-encoded string. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| ### [delete](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/delete) | Deletes the specified S/MIME config for the specified send-as alias. |\n| ### [get](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/get) | Gets the specified S/MIME config for the specified send-as alias. |\n| ### [insert](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/insert) | Insert (upload) the given S/MIME config for the specified send-as alias. |\n| ### [list](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/list) | Lists S/MIME configs for the specified send-as alias. |\n| ### [setDefault](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/setDefault) | Sets the default S/MIME config for the specified send-as alias. |"]]