Skip to content

Commit

Permalink
Fixed erroneous Readme code example
Browse files Browse the repository at this point in the history
  • Loading branch information
lhazlewood committed May 18, 2023
1 parent 760c542 commit 3557c55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -159,7 +159,7 @@ enforcement.
and conditional branch variant in the entire codebase is tested and required to pass on every build.
* Creating, parsing and verifying digitally signed compact JWTs (aka JWSs) with all standard JWS algorithms:

| Identifier | Signature Algorithm |
| Identifier | Signature Algorithm |
|------------|-------------------------------------------------------------------|
| `HS256` | HMAC using SHA-256 |
| `HS384` | HMAC using SHA-384 |
Expand Down Expand Up @@ -3519,7 +3519,7 @@ KeyPair pair = Jwts.SIG.Ed448.keyPairBuilder().build();
PublicKey pubKey = pair.getPublic();
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();

assert privJwk.getId().equals(privJwk.thumbprint().toString());
Expand Down

0 comments on commit 3557c55

Please sign in to comment.