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:
parent
3bc07f045c
commit
244113bc2f
53 changed files with 141 additions and 129 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue