mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-09 11:48:00 +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) {
|
public boolean containsVerifiedSignatureFrom(PGPPublicKeyRing publicKeys) {
|
||||||
for (PGPPublicKey key : publicKeys) {
|
for (PGPPublicKey key : publicKeys) {
|
||||||
OpenPgpV4Fingerprint fingerprint = new OpenPgpV4Fingerprint(key);
|
OpenPgpV4Fingerprint fingerprint = new OpenPgpV4Fingerprint(key);
|
||||||
if (verifiedSignaturesFingerprints.contains(fingerprint)) {
|
if (containsVerifiedSignatureFrom(fingerprint)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean containsVerifiedSignatureFrom(OpenPgpV4Fingerprint fingerprint) {
|
||||||
|
return verifiedSignaturesFingerprints.contains(fingerprint);
|
||||||
|
}
|
||||||
|
|
||||||
static Builder getBuilder() {
|
static Builder getBuilder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue