1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-14 16:32:06 +01:00

Fix decryption example in README

Fixes #456
This commit is contained in:
Paul Schaub 2024-11-11 11:52:56 +01:00
parent e46cbae6b8
commit 89790a0a94
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -164,7 +164,7 @@ This behaviour can be modified though using the `Policy` class.
DecryptionStream decryptionStream = PGPainless.decryptAndOrVerify()
.onInputStream(encryptedInputStream)
.withOptions(new ConsumerOptions()
.addMessagePassphrase(bobSecKeys, secretKeyProtector)
.addDecryptionKey(bobSecKeys, secretKeyProtector)
.addVerificationCert(alicePubKeys)
);