Fixed erroneous Readme code example

This commit is contained in:
Les Hazlewood 2023-05-18 15:27:14 -07:00
parent 760c542a0b
commit 3557c55079
1 changed files with 2 additions and 2 deletions

View File

@ -3519,7 +3519,7 @@ KeyPair pair = Jwts.SIG.Ed448.keyPairBuilder().build();
PublicKey pubKey = pair.getPublic(); PublicKey pubKey = pair.getPublic();
PrivateKey privKey = pair.getPrivate(); PrivateKey privKey = pair.getPrivate();
OctetPrivateJwk<PublicKey, PrivateKey> privJwk = builder().forOctetKey(privKey).setIdFromThumbprint().build(); OctetPrivateJwk<PrivateKey, PublicKey> privJwk = builder().forOctetKey(privKey).setIdFromThumbprint().build();
OctetPublicJwk<PublicKey> pubJwk = privJwk.toPublicJwk(); OctetPublicJwk<PublicKey> pubJwk = privJwk.toPublicJwk();
assert privJwk.getId().equals(privJwk.thumbprint().toString()); assert privJwk.getId().equals(privJwk.thumbprint().toString());