1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-11 14:51:08 +01:00

Replace static decryptAndOrVerify() method with non-static processMessage() function

This commit is contained in:
Paul Schaub 2025-05-06 22:21:02 +02:00
parent 3bc07f045c
commit 244113bc2f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
53 changed files with 141 additions and 129 deletions

View file

@ -187,7 +187,7 @@ public class InvestigateMultiSEIPMessageHandlingTest {
.addVerificationCert(ring2)
.addDecryptionKey(ring1);
DecryptionStream decryptionStream = PGPainless.decryptAndOrVerify()
DecryptionStream decryptionStream = api.processMessage()
.onInputStream(new ByteArrayInputStream(MESSAGE.getBytes(StandardCharsets.UTF_8)))
.withOptions(options);

View file

@ -122,7 +122,7 @@ public class OnePassSignatureVerificationWithPartialLengthLiteralDataRegressionT
ByteArrayInputStream in = new ByteArrayInputStream(dearmored.toByteArray());
DecryptionStream decryptionStream = PGPainless.decryptAndOrVerify()
DecryptionStream decryptionStream = PGPainless.getInstance().processMessage()
.onInputStream(in)
.withOptions(ConsumerOptions.get()
.addVerificationCert(cert)