564565566567568569570571572573574
int sigCount = 0; while (sigs.hasNext()) { PGPSignature s = (PGPSignature)sigs.next(); s.initVerify(pubKey, "BC"); if (!s.verifyCertification(attributes, pubKey)) { fail("added signature failed verification"); }
618619620621622623624625626627628
it = pgpPub.getPublicKey().getSignaturesForID(uid); PGPSignature sig = (PGPSignature)it.next(); sig.initVerify(pgpPub.getPublicKey(), "BC"); if (!sig.verifyCertification(uid, pgpPub.getPublicKey())) { fail("failed to verify certification"); }
914915916917918919920921922923924
it = key.getSignaturesForID(uid); sig = (PGPSignature)it.next(); sig.initVerify(key, "BC"); if (!sig.verifyCertification(uid, key)) { fail("failed to verify certification"); }
954955956957958959960961962963964
Iterator sgIt = key.getSignaturesOfType(PGPSignature.KEY_REVOCATION); sig = (PGPSignature)sgIt.next(); sig.initVerify(key, "BC"); if (!sig.verifyCertification(key)) { fail("failed to verify revocation certification"); }
10081009101010111012101310141015101610171018