mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
Update README
This commit is contained in:
parent
be5c2a01a1
commit
9d75026bab
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ There are some predefined key archetypes, but it is possible to fully customize
|
|||
.modernKeyRing("Romeo <romeo@montague.lit>", "I defy you, stars!");
|
||||
|
||||
// Customized key
|
||||
OpenPGPKey keyRing = PGPainless.buildKeyRing()
|
||||
OpenPGPKey keyRing = api.buildKey()
|
||||
.setPrimaryKey(KeySpec.getBuilder(
|
||||
RSA.withLength(RsaLength._8192),
|
||||
KeyFlag.SIGN_DATA, KeyFlag.CERTIFY_OTHER))
|
||||
|
@ -163,7 +163,7 @@ Furthermore, PGPainless will reject signatures made using weak algorithms like S
|
|||
This behaviour can be modified though using the `Policy` class.
|
||||
|
||||
```java
|
||||
DecryptionStream decryptionStream = PGPainless.decryptAndOrVerify()
|
||||
DecryptionStream decryptionStream = PGPainless.getInstance().processMessage()
|
||||
.onInputStream(encryptedInputStream)
|
||||
.withOptions(ConsumerOptions.get(api)
|
||||
.addDecryptionKey(bobSecKeys, secretKeyProtector)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue