Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use java.util.Base64 for encoding and decoding #401

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

Merged
merged 2 commits into from
Mar 5, 2020

Conversation

jimmyjames
Copy link
Contributor

@jimmyjames jimmyjames commented Mar 3, 2020

Changes

These changes enable us to use standard Java Base64 encoding/decoding available since JDK8. This allows us to remove a third-party dependency, is more idiomatic Java, and may offer performance improvements over the Apache library.

  • Use java.util.Base64 for Base64 encoding and decoding
  • Throw appropriate exception when attempting to decode invalid Base64 token
  • Remove commons-codec dependency

NOTE: These changes are targeted at v4 of this library.

References

Testing

Tests updated to use java.util.Base64 encoding and decoding.

Checklist

@jimmyjames jimmyjames added CH: Changed large This PR may require significant effort to action, or contains many changes to review labels Mar 3, 2020
@jimmyjames jimmyjames requested review from a team and lbalmaceda March 3, 2020 02:56
@jimmyjames jimmyjames added this to the v4-Next milestone Mar 3, 2020
damieng
damieng previously approved these changes Mar 3, 2020
@jdkizer9
Copy link

jdkizer9 commented Apr 3, 2020

@jimmyjames Do you have a timeline for when you expect to release v4?

@joreilly
Copy link

Has this been included in any release yet?

@jimmyjames
Copy link
Contributor Author

We've had to pause on v4 work, but there is good news. We are going to bump the min Java version to 8 in an upcoming minor release, prior to the end of the year (see #457 for more info). Once that is complete, this (and other changes that require Java 8) can be included in the current release stream. Given that, makes sense to open a new issue to apply this change on master once that Java 8 change is made, so created that in #461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Changed large This PR may require significant effort to action, or contains many changes to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants