mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-08 19:27:57 +01:00
add containsVerifiedSignatureFrom(OpenPgpV4Fingerprint) to OpenPgpMetadata
This commit is contained in:
parent
e9ca8df956
commit
c8f3e3d116
1 changed files with 5 additions and 1 deletions
|
@ -96,13 +96,17 @@ public class OpenPgpMetadata {
|
|||
public boolean containsVerifiedSignatureFrom(PGPPublicKeyRing publicKeys) {
|
||||
for (PGPPublicKey key : publicKeys) {
|
||||
OpenPgpV4Fingerprint fingerprint = new OpenPgpV4Fingerprint(key);
|
||||
if (verifiedSignaturesFingerprints.contains(fingerprint)) {
|
||||
if (containsVerifiedSignatureFrom(fingerprint)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean containsVerifiedSignatureFrom(OpenPgpV4Fingerprint fingerprint) {
|
||||
return verifiedSignaturesFingerprints.contains(fingerprint);
|
||||
}
|
||||
|
||||
static Builder getBuilder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue