* Creates a Keyring for the given identifier * @param {String} identifier - the identifier of the new keyring * @returns {Promise. } * @throws {Error} error.code = 'KEYRING_ALREADY_EXISTS' * @example * mailvelope.createKeyring('Account-ID-4711').then(function(keyring) {
(identifier)
| 56 | * }); |
| 57 | */ |
| 58 | createKeyring(identifier) { |
| 59 | return send('create-keyring', {identifier}).then(options => new Keyring(identifier, options)); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Ascii Armored PGP Text Block |
no test coverage detected