Home GnuPG
Diffusion GPGME 754e799d35fd

js: disallow bulk set data on key from outside

Description

js: disallow bulk set data on key from outside

  • src/Key.js Key class is not exported anymore, as it should not be used directly anywhere. setKeyData is no more a method of the Key, (optional) data are now validated and set on Key creation and on updates, both from within this module, thus no longer exposing setKeyData to the outside.
  • createKey now gained an optional parameter which allows to set Key data at this point.

Details

Provenance
mkrambachAuthored on Aug 17 2018, 2:40 PM
Parents
rM90cb4a684211: js: importKey feedback refactor
Branches
Unknown
Tags
Unknown