mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-10 22:31:09 +01:00
Add tests for pgpainless-sop
This commit is contained in:
parent
97c8ff8312
commit
f68779d8a5
4 changed files with 349 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ public class DecryptImpl implements Decrypt {
|
|||
try {
|
||||
PGPPublicKeyRingCollection certs = PGPainless.readKeyRing().keyRingCollection(certIn, false)
|
||||
.getPgpPublicKeyRingCollection();
|
||||
if (certs == null) {
|
||||
if (certs.size() == 0) {
|
||||
throw new SOPGPException.BadData(new PGPException("No certificates provided."));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue