Type Definitions
AsciiArmored
Ascii Armored PGP Text Block
- String
- Source
AutocryptMailHeaders
- Object
| Name | Type | Description |
|---|---|---|
autocrypt | String | the Autocrypt header to process |
from | String | the From header |
date | String | the Date header |
- Source
BackupSyncHandler(packet) → {Promise.<undefined, Error>}
| Name | Type | Description |
|---|---|---|
packet | BackupSyncPacket | object with backup data |
- Source
- Type:
- Promise.<undefined, Error>
BackupSyncPacket
- Object
| Name | Type | Description |
|---|---|---|
backup | AsciiArmored | encrypted key backup as PGP armored message |
- Source
CssSelector
CSS Selector String
- String
- Source
DisplayContainer
- Object
| Name | Type | Description |
|---|---|---|
error | Error | Error object with code and message attribute |
- Source
DisplayContainerOptions
- Object
| Name | Type | Description |
|---|---|---|
senderAddress | String | email address of sender, used to indentify key for signature verification |
- Source
DownloadSyncHandler(downloadObj) → {Promise.<DownloadSyncReply, Error>}
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
downloadObj | Object | meta info for download Properties
|
- Source
- if version on server has same eTag, then keyringMsg property of reply is empty, but eTag in reply has to be set
if server is initial and downloadObj.eTag is not null, then the promise is resolved with empty eTag
- Type:
- Promise.<DownloadSyncReply, Error>
DownloadSyncReply
- Object
| Name | Type | Description |
|---|---|---|
keyringMsg | AsciiArmored | encrypted keyring as PGP armored message, or null if no newer version available |
eTag | String | entity tag for the current encrypted keyring message, or null if server is intial |
- Source
EditorContainerOptions
- Object
| Name | Type | Description |
|---|---|---|
quota | number | mail content (text + attachments) limit in kilobytes (default: 20480) |
signMsg | boolean | if true then the mail will be signed (default: false) |
armoredDraft | AsciiArmored | a PGP message, signed and encrypted with the default key of the user, will be used to restore a draft in the editor |
predefinedText | String | text that will be added to the editor |
quotedMail | AsciiArmored | mail that should be quoted |
quotedMailIndent | boolean | if true the quoted mail will be indented (default: true) |
quotedMailHeader | String | header to be added before the quoted mail |
keepAttachments | boolean | add attachments of quotedMail to editor (default: false) |
- Source
KeyBackupContainerOptions
- Object
| Name | Type | Description |
|---|---|---|
initialSetup | Boolean | (default: true) |
- Source
KeyGenContainerOptions
- Object
| Name | Type | Description |
|---|---|---|
userIds | Array.<UserId> | array of user IDs. The first entry in the array is set as the primary user ID. |
keySize | number | key size in bit, optional, default: 2048, valid values: 2048, 4096. |
- Source
LookupResult
- Object
| Name | Type | Attributes | Description |
|---|---|---|---|
fingerprint | String | Fingerprint of the key | |
lastModified | Date | last time the key was modified | |
source | String | Source the key was found at | |
lastSeen | Date | <optional> | last time the key was seen |
armored | String | <optional> | Armored key that can be imported |
- Source
OpenSettingsOptions
- Object
| Name | Type | Description |
|---|---|---|
showDefaultKey | Boolean | (default: false) |
- Source
PrivateKeyContainerOptions
- Object
| Name | Type | Description |
|---|---|---|
restorePassword | boolean | (default: false) |
- Source
RestoreSyncHandler() → {Promise.<BackupSyncPacket, Error>}
- Source
- Type:
- Promise.<BackupSyncPacket, Error>
SettingsContainerOptions
- Object
| Name | Type | Description |
|---|---|---|
email | String | the email address of the current user |
fullName | String | the full name of the current user |
- Source
SyncHandlerObject
- Object
| Name | Type | Description |
|---|---|---|
uploadSync | UploadSyncHandler | function called by Mailvelope to upload the keyring (public keys), the message is encrypted with the default private key |
downloadSync | DownloadSyncHandler | function called by Mailvelope to download the encrypted keyring (public keys) |
backup | BackupSyncHandler | function called by Mailvelope to upload a symmetrically encrypted private key backup |
restore | RestoreSyncHandler | function called by Mailvelope to restore a private key backup |
- Source
UploadSyncHandler(uploadObj) → {Promise.<UploadSyncReply, Error>}
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
uploadObj | Object | object with upload data Properties
|
- Source
- if version on server has different eTag, then the promise is rejected
if server is initial and uploadObj.eTag is not null, then the promise is rejected
- Type:
- Promise.<UploadSyncReply, Error>
UploadSyncReply
- Object
| Name | Type | Description |
|---|---|---|
eTag | String | entity tag for the uploaded encrypted keyring |
- Source
UserId
- Object
| Name | Type | Description |
|---|---|---|
email | String | the email address of the current user |
fullName | String | the full name of the current user |
- Source
additionalMailHeaders
- Object
| Name | Type | Description |
|---|---|---|
autocrypt | String | the Autocrypt header that should be |
- Source
outgoingMailHeaders
- Object
| Name | Type | Description |
|---|---|---|
from | String | the From header |
- Source