Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutable jwtparser #791

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Immutable jwtparser #791

merged 2 commits into from
Aug 4, 2023

Conversation

lhazlewood
Copy link
Contributor

Made JwtParser immutable (JwtParserBuilder performs mutations)

…tate, etc).

- Jwts.parser() has been changed to return a `JwtParserBuilder`, Jwts.parserBuilder() has been removed since it's now superfluous.
- LegacyServices.java has been deleted since DefaultJwtParser is no longer mutable (it was used in the parse() method. This logic is now only performed via the Services.java implementation used by the JwtParserBuilder).
- ImmutableJwtParser.java has been deleted since it was a wrapper around a mutable DefaultJwtParser implementation.  Now that DefaultJwtParser is immutable, ImmutableJwtParser.java is no longer necessary.
@lhazlewood lhazlewood merged commit 12a4a2e into master Aug 4, 2023
21 of 22 checks passed
@lhazlewood lhazlewood deleted the immutable-jwtparser branch August 4, 2023 23:42
@lhazlewood lhazlewood added this to the 0.12.0 milestone Aug 11, 2023
@jwtk jwtk deleted a comment from sonatype-lift bot Aug 11, 2023
Comment on lines -1090 to +1064
public static JwtParserBuilder parserBuilder() {
public static JwtParserBuilder parser() {
Copy link

Choose a reason for hiding this comment

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

Same sort of problem as noted in #794 (comment)

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.

None yet

2 participants