REST Resource: users.settings.sendAs.smimeInfo
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: SmimeInfo
Biểu diễn dưới dạng 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 .
} |
Trường |
id |
string
Mã không thể thay đổi của SmimeInfo.
|
issuerCn |
string
Tên chung của tổ chức phát hành chứng chỉ S/MIME.
|
isDefault |
boolean
Liệu SmimeInfo này có phải là SmimeInfo mặc định cho địa chỉ gửi thay mặt của người dùng này hay không.
|
expiration |
string (int64 format)
Thời điểm chứng chỉ hết hạn (tính bằng mili giây kể từ thời gian bắt đầu của hệ thống).
|
encryptedKeyPassword |
string
Mật khẩu khoá đã mã hoá, khi khoá được mã hoá.
|
Trường hợp hợp nhất key . "Khoá" S/MIME có thể bao gồm nhiều tổ hợp khoá công khai, khoá riêng tư và chuỗi chứng chỉ tuỳ thuộc vào định dạng dự kiến và được sử dụng. key chỉ có thể là một trong những loại sau: |
pem |
string
Chuỗi chứng chỉ nối X509 có định dạng PEM (mã hoá base64 chuẩn). Định dạng dùng để trả về khoá, bao gồm khoá công khai cũng như chuỗi chứng chỉ (không phải khoá riêng tư).
|
pkcs12 |
string (bytes format)
Định dạng PKCS#12 chứa một cặp khoá riêng tư/công khai và chuỗi chứng chỉ. Định dạng này chỉ được chấp nhận từ ứng dụng để tạo SmimeInfo mới và không bao giờ được trả về, vì khoá riêng tư không được xuất. PKCS#12 có thể được mã hoá, trong trường hợp đó, bạn nên đặt encryptedKeyPassword cho phù hợp. Chuỗi được mã hoá base64.
|
Phương thức |
|
Xoá cấu hình S/MIME đã chỉ định cho bí danh gửi dưới dạng đã chỉ định. |
|
Lấy cấu hình S/MIME được chỉ định cho bí danh gửi dưới dạng được chỉ định. |
|
Chèn (tải lên) cấu hình S/MIME đã cho cho bí danh gửi dưới dạng đã chỉ định. |
|
Liệt kê các cấu hình S/MIME cho bí danh gửi dưới dạng được chỉ định. |
|
Đặt cấu hình S/MIME mặc định cho bí danh gửi dưới dạng đã chỉ định. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]