aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/permittedOperations.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-06-11 10:08:50 +0000
committerMaximilian Krambach <[email protected]>2018-06-11 10:08:50 +0000
commite97e6c06e950cfad424e120f4f3752b594214c94 (patch)
tree38bb741a72b256c10c8e3df10ed4839ae97c7e3c /lang/js/src/permittedOperations.js
parentjs: change chunksize handling and decoding (diff)
downloadgpgme-e97e6c06e950cfad424e120f4f3752b594214c94.tar.gz
gpgme-e97e6c06e950cfad424e120f4f3752b594214c94.zip
js: Add key creation to Keyring
-- * src/Keyring.js: Added method generateKey for new Keys Still TODO: Key length and some further testing. Automated testing does not work in this case, and gpgmejs will not be able to delete test keys again. * src/permittedOperations.js Added new method's definitions according to gpgme-json
Diffstat (limited to 'lang/js/src/permittedOperations.js')
-rw-r--r--lang/js/src/permittedOperations.js23
1 files changed, 21 insertions, 2 deletions
diff --git a/lang/js/src/permittedOperations.js b/lang/js/src/permittedOperations.js
index 6ac33af9..91612ada 100644
--- a/lang/js/src/permittedOperations.js
+++ b/lang/js/src/permittedOperations.js
@@ -311,12 +311,31 @@ export const permittedOperations = {
'info': 'object'
}
}
- }
+ },
+ createkey: {
+ pinentry: true,
+ required: {
+ userid: {
+ allowed: ['string']
+ }
+ },
+ optional: {
+ algo: {
+ allowed: ['string']
+ },
+ expires: {
+ allowed: ['number'],
+ }
+ },
+ answer: {
+ type: [''],
+ data: {'fingerprint': 'string'}
+ }
+ }
/**
* TBD handling of secrets
* TBD key modification?
- * TBD: key generation
*/
};