X Tutup
Skip to content

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

Merged
jimmyjames merged 2 commits intoauth0:4.0.0-DEVfrom
jimmyjames:java-base64
Mar 5, 2020
Merged

Use java.util.Base64 for encoding and decoding#401
jimmyjames merged 2 commits intoauth0:4.0.0-DEVfrom
jimmyjames:java-base64

Conversation

@jimmyjames
Copy link
Copy Markdown
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
Copy Markdown

jdkizer9 commented Apr 3, 2020

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

@joreilly
Copy link
Copy Markdown

Has this been included in any release yet?

@jimmyjames
Copy link
Copy Markdown
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

X Tutup