REST Resource: users.settings.sendAs.smimeInfo

資源:SmimeInfo

S/MIME 電子郵件設定。

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 可能已加密,在這種情況下, encryptionKeyPassword 應正確設定。

Base64 編碼的字串。

方法

delete

刪除指定傳送別名的指定的 S/MIME 設定。

get

取得指定的「以形式傳送」別名的指定的 S/MIME 設定。

insert

針對指定的「以這個地址寄送郵件」別名,插入 (上傳) 指定的 S/MIME 設定。

list

列出指定傳送別名的 S/MIME 設定。

setDefault

設定指定「以這個地址寄送」別名的預設 S/MIME 設定。