l.r.i.g.IGPGKeySet(Interface) : interface documentation

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

The set of GPGKeys.
Method new Create a new GPGKey pointing to the given Person.
Method activate Activate 'key' for 'requester'.
Method deactivate Deactivate a key.
Method getByFingerprint Return UNIQUE result for a given Key fingerprint including
Method getByFingerprints Get multiple OpenPGP keys by their fingerprints.
Method getGPGKeysForPerson Return OpenGPG keys for a person.
def new(ownerID, keyid, fingerprint, keysize, algorithm, active=True, can_encrypt=True):
Create a new GPGKey pointing to the given Person.
def activate(requester, key, can_encrypt):
Activate 'key' for 'requester'.
ReturnsA tuple of (IGPGKey, new), where 'new' is False if we have reactivated an existing key.
def deactivate(key):
Deactivate a key.
ParameterskeyAn IGPGKey instance.
def getByFingerprint(fingerprint, default=None):
Return UNIQUE result for a given Key fingerprint including inactive ones.
def getByFingerprints(fingerprints):
Get multiple OpenPGP keys by their fingerprints.
def getGPGKeysForPerson(person, active=True):
Return OpenGPG keys for a person.
Returnsa list of IGPGKey instances.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.