1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-16 08:34:53 +02:00

fix "Easily Generate Keys" example code missing passphrase wrapper class

This commit is contained in:
Simon Frankenberger 2022-03-03 11:55:34 +01:00
parent 9e0aa95a5a
commit d6cf1c6609
No known key found for this signature in database
GPG key ID: 2F4A3C302FD2ECAE

View file

@ -107,7 +107,7 @@ There are some predefined key archetypes, but it is possible to fully customize
KeyFlag.ENCRYPT_COMMS, KeyFlag.ENCRYPT_STORAGE) KeyFlag.ENCRYPT_COMMS, KeyFlag.ENCRYPT_STORAGE)
).addUserId("Juliet <juliet@montague.lit>") ).addUserId("Juliet <juliet@montague.lit>")
.addUserId("xmpp:juliet@capulet.lit") .addUserId("xmpp:juliet@capulet.lit")
.setPassphrase("romeo_oh_Romeo<3") .setPassphrase(Passphrase.fromPassword("romeo_oh_Romeo<3"))
.build(); .build();
``` ```