def check_keys(self, keydir, keyid, result=None): '''Check specified or all keys based on the seed type @param keydir: the keydir to list the keys for @param keyid: the keyid to check @param result: optional pyGPG.output.GPGResult object @returns: GKEY_CHECK instance ''' if not result: result = self.list_keys(keydir, fingerprint=keyid, colons=True) checker = KeyChecks(self.logger, qualified_id_check=True) return checker.validity_checks(keydir, keyid, result)
def speccheck(self, keydir, keyid, result=None): '''Check specified or all keys based on the seed type specifications are met. @param keydir: the keydir to list the keys for @param keyid: the keyid to check @param result: optional pyGPG.output.GPGResult object @returns: SpecCheck instance ''' if not result: result = self.list_keys(keydir, fingerprint=keyid, colons=True) checker = KeyChecks(self.logger, qualified_id_check=True) specchecks = checker.spec_check(keydir, keyid, result) return specchecks