mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 18:59:39 +02:00
Implement signature verification with certificate stores as cert source
This commit is contained in:
parent
22abb62443
commit
4594b494a9
4 changed files with 257 additions and 53 deletions
|
@ -76,7 +76,7 @@ public class DetachedVerifyImpl implements DetachedVerify {
|
|||
verificationList.add(map(signatureVerification));
|
||||
}
|
||||
|
||||
if (!options.getCertificates().isEmpty()) {
|
||||
if (!options.getCertificateSource().getExplicitCertificates().isEmpty()) {
|
||||
if (verificationList.isEmpty()) {
|
||||
throw new SOPGPException.NoSignature();
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ public class InlineVerifyImpl implements InlineVerify {
|
|||
verificationList.add(map(signatureVerification));
|
||||
}
|
||||
|
||||
if (!options.getCertificates().isEmpty()) {
|
||||
if (!options.getCertificateSource().getExplicitCertificates().isEmpty()) {
|
||||
if (verificationList.isEmpty()) {
|
||||
throw new SOPGPException.NoSignature();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue