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 的固定 ID。
|
issuerCn |
string
S/MIME 憑證核發者的通用名稱。
|
isDefault |
boolean
這個 SmimeInfo 是否為使用者傳送地址的預設值。
|
expiration |
string (int64 format)
憑證到期時間 (以從 Epoch 紀元時間算起的毫秒數表示)。
|
encryptedKeyPassword |
string
已加密金鑰的密碼。
|
聯集欄位 key 。S/MIME「金鑰」可能包含公開金鑰、私密金鑰和憑證鏈結的各種組合,具體取決於預期和使用的格式。key 只能是下列其中一項: |
pem |
string
PEM 格式的 X509 串聯憑證字串 (標準 Base64 編碼)。用於傳回金鑰的格式,包括公開金鑰和憑證鏈結 (非私密金鑰)。
|
pkcs12 |
string (bytes format)
PKCS#12 格式,內含單一私密/公開金鑰組合和憑證鏈結。系統只會接受用戶端用來建立新 SmimeInfo 的格式,不會傳回,因為私密金鑰並非用於匯出。PKCS#12 可能會加密,在這種情況下,請適當設定 encryptedKeyPassword。 Base64 編碼字串。
|
方法 |
|
刪除指定傳送代號的 S/MIME 設定。 |
|
取得指定傳送者別名的指定 S/MIME 設定。 |
|
插入 (上傳) 指定傳送者別名的指定 S/MIME 設定。 |
|
列出指定寄件者別名的 S/MIME 設定。 |
|
為指定的「傳送者別名」設定預設 S/MIME 設定。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]