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

Part of canonical.launchpad.interfaces.gpghandler View In Hierarchy

Known implementations: canonical.launchpad.utilities.gpghandler.PymeKey

pyME key model.
Attribute fingerprint Key Fingerprint
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 setOwnerTrust Set the owner_trust value for this key.
Method export Export the context key in ASCII-armored mode.
fingerprint =
Key Fingerprint
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 setOwnerTrust(value):
Set the owner_trust value for this key.
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.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.