diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-11-14 11:59:28 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-11-14 14:56:16 -0300 |
commit | 875f8ed071f3dae06818eba992a8dd8ddc2298b3 (patch) | |
tree | a7564edcbc45a957a93f75e3552995b57e4eb09c /src/leap/keymanager/openpgp.py | |
parent | 0050dcd11137f544c6c78d236163e19f76a24b38 (diff) |
Expose openpgp methods in keymanager.
- parse_ascii_key
- delete_key
- put_key
Diffstat (limited to 'src/leap/keymanager/openpgp.py')
-rw-r--r-- | src/leap/keymanager/openpgp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py index 78acd6ad..f6223d57 100644 --- a/src/leap/keymanager/openpgp.py +++ b/src/leap/keymanager/openpgp.py @@ -424,10 +424,14 @@ class OpenPGPScheme(EncryptionScheme): """ Remove C{key} from storage. + May raise: + errors.KeyNotFound + errors.KeyAttributesDiffer + :param key: The key to be removed. :type key: EncryptionKey """ - leap_assert(key.__class__ is OpenPGPKey, 'Wrong key type.') + leap_assert_type(key, OpenPGPKey) stored_key = self.get_key(key.address, private=key.private) if stored_key is None: raise errors.KeyNotFound(key) |