Skip to content

Fix README Java examples - #1078

Open
hanjeun wants to merge 1 commit into
jwtk:mainfrom
hanjeun:docs/fix-readme-java-examples
Open

hanjeun wants to merge 1 commit into
jwtk:mainfrom
hanjeun:docs/fix-readme-java-examples

Conversation

@hanjeun

@hanjeun hanjeun commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Correct invalid Java examples in the README.

  • Use compact() to produce a JWT string.
  • Close the three try blocks before their catch clauses.
  • Reference the declared clock instance.
  • Parse encrypted claims for the JWE example.
  • Correct JWK/JWK Set declarations, key-operation registry usage, console output, and JWK builders.
  • Fix the optional PBES2 header example.

Verification:

  • .\mvnw.cmd clean verify

@lhazlewood lhazlewood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants