REST Resource: users.settings.sendAs.smimeInfo
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
משאב: SmimeInfo
ייצוג ב-JSON |
{
"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 האלה הם ברירת המחדל של כתובת השליחה של המשתמש.
|
expiration |
string (int64 format)
המועד שבו יפוג תוקף האישור (באלפיות שנייה מאז תחילת התקופה של זמן מערכת).
|
encryptedKeyPassword |
string
הסיסמה של המפתח המוצפן, כשהמפתח מוצפן.
|
שדה האיחוד key . 'המפתח' של S/MIME, שעשוי להכיל שילובים שונים של המפתח הציבורי, המפתח הפרטי ושרשרת האישורים, בהתאם לפורמט הצפוי והמשמש. הערך של key יכול להיות רק אחת מהאפשרויות הבאות: |
pem |
string
מחרוזת אישור מקושרת של X509 בפורמט PEM (קידוד base64 רגיל). הפורמט שבו מוחזר המפתח, שכולל את המפתח הציבורי וגם את שרשרת האישורים (לא את המפתח הפרטי).
|
pkcs12 |
string (bytes format)
פורמט PKCS#12 שמכיל זוג מפתחות פרטי/ציבורי יחיד ושרשרת אישורים. הפורמט הזה מתקבל מהלקוח רק לצורך יצירת SmimeInfo חדש, והוא אף פעם לא מוחזר, כי המפתח הפרטי לא מיועד לייצוא. קובץ PKCS#12 יכול להיות מוצפן, ובמקרה כזה צריך להגדיר את encryptedKeyPassword בהתאם. מחרוזת בקידוד Base64.
|
Methods |
|
מחיקה של הגדרת ה-S/MIME שצוינה לכתובת האימייל החלופית שצוינה לשליחה. |
|
הפונקציה מקבלת את הגדרת ה-S/MIME שצוינה לכתובת האימייל החלופית שצוינה לשליחה. |
|
הוספה (העלאה) של הגדרת ה-S/MIME שצוינה לכתובת האימייל החלופית שצוינה לשליחה. |
|
הצגת הגדרות S/MIME של הכינוי לשליחה שצוין. |
|
הגדרת הגדרת ברירת המחדל של S/MIME לכתובת האימייל החלופית שצוינה לשליחה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],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. |"]]