l.s.g.i.IPymeKey(Interface) : interface documentation

Part of lp.services.gpg.interfaces View In Hierarchy

pyME key model.
Attribute fingerprint Key Fingerprint
Attribute key Underlying GpgmeKey object
Attribute algorithm Key Algorithm
Attribute revoked Key Revoked
Attribute expired Key Expired
Attribute secret Whether the key is secret of not.
Attribute keysize Key Size
Attribute keyid Pseudo Key ID, composed by last fingerprint 8 digits
Attribute uids List of user IDs associated with this key
Attribute emails List containing only well formed and non-revoked emails
Attribute displayname Key displayname: <size><type>/<keyid>
Attribute owner_trust The owner trust
Attribute can_encrypt Whether the key can be used for encrypting
Attribute can_sign Whether the key can be used for signing
Attribute can_certify Whether the key can be used for certification
Attribute can_authenticate Whether the key can be used for authentication
Method export Export the context key in ASCII-armored mode.
Method matches Return True if and only if this fingerprint matches this key.
fingerprint =
Key Fingerprint
key =
Underlying GpgmeKey object
algorithm =
Key Algorithm
revoked =
Key Revoked
expired =
Key Expired
secret =
Whether the key is secret of not.
keysize =
Key Size
keyid =
Pseudo Key ID, composed by last fingerprint 8 digits
uids =
List of user IDs associated with this key
emails =
List containing only well formed and non-revoked emails
displayname =
Key displayname: <size><type>/<keyid>
owner_trust =
The owner trust
can_encrypt =
Whether the key can be used for encrypting
can_sign =
Whether the key can be used for signing
can_certify =
Whether the key can be used for certification
can_authenticate =
Whether the key can be used for authentication
def export():
Export the context key in ASCII-armored mode.

Both public and secret keys are supported, although secret keys are exported by calling gpg process while public ones use the native gpgme API.

Returnsa string containing the exported key.
def matches(fingerprint):
Return True if and only if this fingerprint matches this key.
API Documentation for Launchpad, generated by pydoctor at 2019-09-22 00:00:13.