1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-17 18:02:05 +01:00

Fix javadoc lying about only encrypting to single subkeys

Fixes #305
This commit is contained in:
Paul Schaub 2022-08-02 16:53:01 +02:00
parent 8bbb3aa8ba
commit c1de66e1d7
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -48,11 +48,11 @@ import org.pgpainless.util.Passphrase;
* This will cause PGPainless to use the provided algorithm for message encryption, instead of negotiating an algorithm
* by inspecting the provided recipient keys.
*
* By default, PGPainless will only encrypt to a single encryption capable subkey per recipient key.
* This behavior can be changed, e.g. by calling
* By default, PGPainless will encrypt to all suitable, encryption capable subkeys on each recipient's certificate.
* This behavior can be changed per recipient, e.g. by calling
* <pre>
* {@code
* opt.addRecipient(aliceKey, EncryptionOptions.encryptToAllCapableSubkeys());
* opt.addRecipient(aliceKey, EncryptionOptions.encryptToFirstSubkey());
* }
* </pre>
* when adding the recipient key.