From cff69006f7e350c572614cfafe4dc3a69f435c48 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 13 Sep 2021 19:50:24 +0200 Subject: [PATCH] Update readme --- README.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 64f2e002..406d4eca 100644 --- a/README.md +++ b/README.md @@ -76,22 +76,19 @@ There are some predefined key archetypes, but it is possible to fully customize // Customized key PGPSecretKeyRing keyRing = PGPainless.generateKeyRing() .withSubKey( - KeySpec.getBuilder(ECDSA.fromCurve(EllipticCurve._P256)) - .withKeyFlags(KeyFlag.SIGN_DATA) - .withDetailedConfiguration() - .withDefaultSymmetricAlgorithms() - .withDefaultHashAlgorithms() - .withPreferredCompressionAlgorithms(CompressionAlgorithm.ZLIB) - .withFeature(Feature.MODIFICATION_DETECTION) - .done() + KeySpec.getBuilder(ECDSA.fromCurve(EllipticCurve._P256), KeyFlag.SIGN_DATA) + .overrideCompressionAlgorithms(CompressionAlgorithm.ZLIB) + .build() ).withSubKey( - KeySpec.getBuilder(ECDH.fromCurve(EllipticCurve._P256)) - .withKeyFlags(KeyFlag.ENCRYPT_COMMS, KeyFlag.ENCRYPT_STORAGE) - .withDefaultAlgorithms() + KeySpec.getBuilder( + ECDH.fromCurve(EllipticCurve._P256), + KeyFlag.ENCRYPT_COMMS, KeyFlag.ENCRYPT_STORAGE) + .build() ).withMasterKey( - KeySpec.getBuilder(RSA.withLength(RsaLength._8192)) - .withKeyFlags(KeyFlag.SIGN_DATA, KeyFlag.CERTIFY_OTHER) - .withDefaultAlgorithms() + KeySpec.getBuilder( + RSA.withLength(RsaLength._8192), + KeyFlag.SIGN_DATA, KeyFlag.CERTIFY_OTHER) + .build() ).withPrimaryUserId("Juliet ") .withAdditionalUserId("xmpp:juliet@capulet.lit") .withPassphrase("romeo_oh_Romeo<3")