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)
证书的到期时间(以从纪元时间起算的毫秒数表示)。
|
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 配置。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]