mirror of https://github.com/jwtk/jjwt.git
Fixed erroneous Readme code example
This commit is contained in:
parent
760c542a0b
commit
3557c55079
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue